Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 62b836c1 authored by Leon Scroggins III's avatar Leon Scroggins III Committed by android-build-merger
Browse files

Merge "Throw OOME if Bitmap.nativeCreate fails" into oc-dev am: c4049e24 am: 5fe26063

am: 49767aa7

Change-Id: Ic39deeaf1f9f8a50da5818302c4e4fa626a79665
parents a3b1a48d 49767aa7
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -682,6 +682,8 @@ static jobject Bitmap_creator(JNIEnv* env, jobject, jintArray jColors,

    sk_sp<Bitmap> nativeBitmap = Bitmap::allocateHeapBitmap(&bitmap);
    if (!nativeBitmap) {
        ALOGE("OOM allocating Bitmap with dimensions %i x %i", width, height);
        doThrowOOME(env);
        return NULL;
    }