Reference colorspace during creation of SkImageInfo

Change-Id: I515060776ef13ad125c7e8513ea10944ef2d4a79
Test: manual.
bug:32621254
This commit is contained in:
sergeyv
2016-11-03 16:18:16 -07:00
parent 3c17728297
commit 7d5219fb50

View File

@@ -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