summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorPeiyong Lin <lpy@google.com>2018-03-06 18:34:21 -0800
committerPeiyong Lin <lpy@google.com>2018-03-08 23:43:35 +0000
commitd8b68717400487a3dd20d1cc7c11f6e1ee6d3fd9 (patch)
treee1553562c932f9b0da668a12e3db86bce5100993 /tools/aapt2/java/JavaClassGenerator_test.cpp
parent0aa191ccbf159b0d6127cfc190e2c4d5fa319eb9 (diff)
Add lockHardwareWideColorGamutCanvas.
This patch adds a hidden API to return a hardware canvas with wide color gamut support. The hardware canvas returned from BaseSurfaceHolder.lockHardwareCanvas doesn't support wide color gamut, this patch makes sure that a wide color gamut canvas context is created when calling lockHardwareCanvas. Verified this approach works by building ImageWallpaper to use this API. Without this API an 8 bit logo P3 doesn't show the logo, with this API the logo is shown correctly. See b/74116826 for more info. BUG: 74116826 Test: Build ImageWallpaper using this API with an 8 bit P3 image Change-Id: Id20343fabcd7f0873d79ce72a235ea9b7c1f3e77
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions