Loading core/jni/android/graphics/Graphics.cpp +6 −1 Original line number Diff line number Diff line Loading @@ -610,7 +610,12 @@ jbyteArray GraphicsJNI::allocateJavaPixelRef(JNIEnv* env, SkBitmap* bitmap, return NULL; } const size_t size = bitmap->getSize(); const int64_t size64 = bitmap->computeSize64(); if (!sk_64_isS32(size64)) { doThrowIAE(env, "bitmap size exceeds 32 bits"); return NULL; } const size_t size = sk_64_asS32(size64); jbyteArray arrayObj = (jbyteArray) env->CallObjectMethod(gVMRuntime, gVMRuntime_newNonMovableArray, gByte_class, size); Loading Loading
core/jni/android/graphics/Graphics.cpp +6 −1 Original line number Diff line number Diff line Loading @@ -610,7 +610,12 @@ jbyteArray GraphicsJNI::allocateJavaPixelRef(JNIEnv* env, SkBitmap* bitmap, return NULL; } const size_t size = bitmap->getSize(); const int64_t size64 = bitmap->computeSize64(); if (!sk_64_isS32(size64)) { doThrowIAE(env, "bitmap size exceeds 32 bits"); return NULL; } const size_t size = sk_64_asS32(size64); jbyteArray arrayObj = (jbyteArray) env->CallObjectMethod(gVMRuntime, gVMRuntime_newNonMovableArray, gByte_class, size); Loading