diff options
author | Peiyong Lin <lpy@google.com> | 2019-01-23 18:39:06 -0800 |
---|---|---|
committer | Peiyong Lin <lpy@google.com> | 2019-01-30 15:22:54 -0800 |
commit | 9d4274005e8a0c0e8ecb223f222cbfde665e7590 (patch) | |
tree | 594727259b9ffff2158bd720be800607c96ac475 /config/boot-image-profile.txt | |
parent | 1f0348524f76eaf74c4ea692f6e02681463e39e1 (diff) |
Replace createHardwareBitmap with wrapHardwareBuffer.
The bitmap.createHardwareBitmap doesn't take a ColorSpace as input, as a result
the returned bitmap is always in SRGB color space. Given that we want to remove
the assumption of SRGB color space, we replace the usage of
createHardwareBitmap with wrapHardwareBuffer which takes an extra argument
ColorSpace. As a result, we will be able to also fix SurfaceControl and various
other places that use screenshot in follow up patches.
BUG: 120904891
Test: CtsUiRenderingTestCases
Change-Id: I57fc0c85d68df43b0e69f9a1ebac00d2ba39554d
Diffstat (limited to 'config/boot-image-profile.txt')
-rw-r--r-- | config/boot-image-profile.txt | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/config/boot-image-profile.txt b/config/boot-image-profile.txt index c2e441b35f48..7f4d1d0db5a2 100644 --- a/config/boot-image-profile.txt +++ b/config/boot-image-profile.txt @@ -19875,7 +19875,6 @@ HSPLandroid/graphics/Bitmap;->createBitmap(Landroid/util/DisplayMetrics;IILandro HSPLandroid/graphics/Bitmap;->createBitmap(Landroid/util/DisplayMetrics;IILandroid/graphics/Bitmap$Config;ZLandroid/graphics/ColorSpace;)Landroid/graphics/Bitmap; HSPLandroid/graphics/Bitmap;->createBitmap(Landroid/util/DisplayMetrics;[IIIIILandroid/graphics/Bitmap$Config;)Landroid/graphics/Bitmap; HSPLandroid/graphics/Bitmap;->createBitmap([IIILandroid/graphics/Bitmap$Config;)Landroid/graphics/Bitmap; -HSPLandroid/graphics/Bitmap;->createHardwareBitmap(Landroid/graphics/GraphicBuffer;)Landroid/graphics/Bitmap; HSPLandroid/graphics/Bitmap;->createScaledBitmap(Landroid/graphics/Bitmap;IIZ)Landroid/graphics/Bitmap; HSPLandroid/graphics/Bitmap;->eraseColor(I)V HSPLandroid/graphics/Bitmap;->extractAlpha(Landroid/graphics/Paint;[I)Landroid/graphics/Bitmap; |