diff options
author | Peiyong Lin <lpy@google.com> | 2018-03-06 18:34:21 -0800 |
---|---|---|
committer | Peiyong Lin <lpy@google.com> | 2018-03-08 23:43:35 +0000 |
commit | d8b68717400487a3dd20d1cc7c11f6e1ee6d3fd9 (patch) | |
tree | e1553562c932f9b0da668a12e3db86bce5100993 /rs/java/android/renderscript/ProgramVertexFixedFunction.java | |
parent | 0aa191ccbf159b0d6127cfc190e2c4d5fa319eb9 (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 'rs/java/android/renderscript/ProgramVertexFixedFunction.java')
0 files changed, 0 insertions, 0 deletions