diff options
author | Alan Viverette <alanv@google.com> | 2014-07-03 15:16:41 -0700 |
---|---|---|
committer | Alan Viverette <alanv@google.com> | 2014-07-04 01:10:38 +0000 |
commit | c054966b719c8a7255f7cf4120cca5050acb68bd (patch) | |
tree | 73932f1f23c59b8f3e97176a702f0cf2649bcd99 /core/jni/android | |
parent | 40d43b27b4f5fba75b040c24f95a170959811fd8 (diff) | |
download | frameworks_base-c054966b719c8a7255f7cf4120cca5050acb68bd.zip frameworks_base-c054966b719c8a7255f7cf4120cca5050acb68bd.tar.gz frameworks_base-c054966b719c8a7255f7cf4120cca5050acb68bd.tar.bz2 |
Make optical insets actually work
Change-Id: I9fabf4cb939cc7a868f95580e7229745acde0418
Diffstat (limited to 'core/jni/android')
-rw-r--r-- | core/jni/android/graphics/BitmapFactory.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/jni/android/graphics/BitmapFactory.cpp b/core/jni/android/graphics/BitmapFactory.cpp index 86ed677..c99066d 100644 --- a/core/jni/android/graphics/BitmapFactory.cpp +++ b/core/jni/android/graphics/BitmapFactory.cpp @@ -598,7 +598,7 @@ int register_android_graphics_BitmapFactory(JNIEnv* env) { jclass bitmap_class = env->FindClass("android/graphics/Bitmap"); SkASSERT(bitmap_class); gBitmap_nativeBitmapFieldID = getFieldIDCheck(env, bitmap_class, "mNativeBitmap", "J"); - gBitmap_layoutBoundsFieldID = getFieldIDCheck(env, bitmap_class, "mLayoutBounds", "[I"); + gBitmap_layoutBoundsFieldID = getFieldIDCheck(env, bitmap_class, "mOpticalInsets", "[I"); int ret = AndroidRuntime::registerNativeMethods(env, "android/graphics/BitmapFactory$Options", gOptionsMethods, |