summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator.cpp
diff options
context:
space:
mode:
authorPeiyong Lin <lpy@google.com>2019-01-23 18:39:06 -0800
committerPeiyong Lin <lpy@google.com>2019-01-30 15:22:54 -0800
commit9d4274005e8a0c0e8ecb223f222cbfde665e7590 (patch)
tree594727259b9ffff2158bd720be800607c96ac475 /tools/aapt2/java/JavaClassGenerator.cpp
parent1f0348524f76eaf74c4ea692f6e02681463e39e1 (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 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions