Loading core/jni/android/graphics/BitmapFactory.cpp +3 −2 Original line number Diff line number Diff line Loading @@ -317,8 +317,6 @@ static jobject doDecode(JNIEnv* env, SkStream* stream, jobject padding, env->SetObjectField(javaBitmap, gBitmap_layoutBoundsFieldID, layoutBounds); } } // detach bitmap from its autodeleter, since we want to own it now adb.detach(); if (willScale) { // This is weird so let me explain: we could use the scale parameter Loading Loading @@ -369,6 +367,9 @@ static jobject doDecode(JNIEnv* env, SkStream* stream, jobject padding, pr->setImmutable(); } // detach bitmap from its autodeleter, since we want to own it now adb.detach(); if (javaBitmap != NULL) { // If a java bitmap was passed in for reuse, pass it back return javaBitmap; Loading Loading
core/jni/android/graphics/BitmapFactory.cpp +3 −2 Original line number Diff line number Diff line Loading @@ -317,8 +317,6 @@ static jobject doDecode(JNIEnv* env, SkStream* stream, jobject padding, env->SetObjectField(javaBitmap, gBitmap_layoutBoundsFieldID, layoutBounds); } } // detach bitmap from its autodeleter, since we want to own it now adb.detach(); if (willScale) { // This is weird so let me explain: we could use the scale parameter Loading Loading @@ -369,6 +367,9 @@ static jobject doDecode(JNIEnv* env, SkStream* stream, jobject padding, pr->setImmutable(); } // detach bitmap from its autodeleter, since we want to own it now adb.detach(); if (javaBitmap != NULL) { // If a java bitmap was passed in for reuse, pass it back return javaBitmap; Loading