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
Loading
Please register or sign in to comment