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

Commit 959516a8 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Throw OOME if Bitmap.nativeCreate fails"

parents 0b57d2f5 f3a02997
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;
    }