summaryrefslogtreecommitdiffstats
path: root/graphics/java
diff options
context:
space:
mode:
authorRomain Guy <romainguy@google.com>2011-01-20 19:09:30 -0800
committerRomain Guy <romainguy@google.com>2011-01-20 19:09:30 -0800
commit5a7b466a2b4b7ced739bd5c31e022de61650545a (patch)
tree1eef540913ce3a131019586f9187bc8e66f59caa /graphics/java
parentc8219299b0003793cee8049b96a3bf7530765eea (diff)
downloadframeworks_base-5a7b466a2b4b7ced739bd5c31e022de61650545a.zip
frameworks_base-5a7b466a2b4b7ced739bd5c31e022de61650545a.tar.gz
frameworks_base-5a7b466a2b4b7ced739bd5c31e022de61650545a.tar.bz2
Add support for drawBitmapMesh().
Change-Id: Ic77f9c534bb90dc7b9458299544bd50b8b6ae6a5
Diffstat (limited to 'graphics/java')
-rw-r--r--graphics/java/android/graphics/Canvas.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/graphics/java/android/graphics/Canvas.java b/graphics/java/android/graphics/Canvas.java
index 184620b..89e725a 100644
--- a/graphics/java/android/graphics/Canvas.java
+++ b/graphics/java/android/graphics/Canvas.java
@@ -1175,8 +1175,11 @@ public class Canvas {
nativeDrawBitmapMatrix(mNativeCanvas, bitmap.ni(), matrix.ni(),
paint != null ? paint.mNativePaint : 0);
}
-
- private static void checkRange(int length, int offset, int count) {
+
+ /**
+ * @hide
+ */
+ protected static void checkRange(int length, int offset, int count) {
if ((offset | count) < 0 || offset + count > length) {
throw new ArrayIndexOutOfBoundsException();
}