Merge "Reference colorspace during creation of SkImageInfo"

This commit is contained in:
TreeHugger Robot
2016-11-05 01:22:18 +00:00
committed by Android (Google) Code Review

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