Loading
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