Write Bitmap's color space in parcel
This change also resets the cached color space field in Bitmap.java when reconfigure() is called or when a bitmap is reused by the bitmap factory. Bug: 32072280 Test: CtsGraphicsTestCases.BitmapColorSpaceTest Change-Id: I232b729b7a29e65bfff21dc749570c3c80adf855
This commit is contained in:
@ -147,6 +147,7 @@ public final class Bitmap implements Parcelable {
|
||||
mWidth = width;
|
||||
mHeight = height;
|
||||
mRequestPremultiplied = requestPremultiplied;
|
||||
mColorSpace = null;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -254,6 +255,7 @@ public final class Bitmap implements Parcelable {
|
||||
nativeReconfigure(mNativePtr, width, height, config.nativeInt, mRequestPremultiplied);
|
||||
mWidth = width;
|
||||
mHeight = height;
|
||||
mColorSpace = null;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user