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

Commit 49767aa7 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

Change-Id: Id5c198a7f1a893f9d8f39dfd2927c471a624c3ef
parents d08f60ba 5fe26063
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;
    }