summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramStore.java
diff options
context:
space:
mode:
authorPeiyong Lin <lpy@google.com>2019-01-31 21:25:57 -0800
committerPeiyong Lin <lpy@google.com>2019-01-31 21:34:50 -0800
commita94f3221da84261a97c26b6597d702ddc9d7a727 (patch)
treeb033cbb8f0a5df1a9a9ffe97c8335029863019fd /rs/java/android/renderscript/ProgramStore.java
parentf97346024864791cacab68b6cb9ba74978ea8217 (diff)
[Color] Make setColorMode togglable.
Previously setColorMode must be called before view is set, and has no effect after that. The state of WCG on Android when this patch was written, was that most hardware out there can not handle mixed color spaces composition well which results in GPU composition. And this situation will remain true for a long time. Despite photography applications want to have WCG, it's a power cost especially during video playback. In order to mitigate this fact and the desire to move the ecosystem forward in WCG, we make setColorMode togglable such that in the next app vsync, when color mode is changed we issue a surface update which results in the old EGLSurface or VkSurface being destroyed and new EGLSurface or VkSurface being created with the target color space being set. As a result, applications can now togglable WCG on/off. BUG: 120288123 Test: Build, flash and boot. Verify with SurfaceFlinger dumpsys on demo app. Change-Id: I09bf8c380a01f4dde364873d37b248cedc6ccfd3
Diffstat (limited to 'rs/java/android/renderscript/ProgramStore.java')
0 files changed, 0 insertions, 0 deletions