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

Commit 7d5219fb authored by sergeyv's avatar sergeyv
Browse files

Reference colorspace during creation of SkImageInfo

Change-Id: I515060776ef13ad125c7e8513ea10944ef2d4a79
Test: manual.
bug:32621254
parent 3c177282
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -655,7 +655,7 @@ static void Bitmap_reconfigure(JNIEnv* env, jobject clazz, jlong bitmapHandle,
        alphaType = requestPremul ? kPremul_SkAlphaType : kUnpremul_SkAlphaType;
    }
    bitmap->bitmap().reconfigure(SkImageInfo::Make(width, height, colorType, alphaType,
            sk_sp<SkColorSpace>(bitmap->info().colorSpace())));
            sk_ref_sp(bitmap->info().colorSpace())));
}

// These must match the int values in Bitmap.java