summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/RenderScriptCacheDir.java
diff options
context:
space:
mode:
authorPeiyong Lin <lpy@google.com>2018-09-19 13:56:12 -0700
committerPeiyong Lin <lpy@google.com>2018-10-24 11:34:08 -0700
commit10a34d10744dc79723020456dd4c0983851d9054 (patch)
treedead4c3e1efd4fd714732fc283fcececa5139379 /rs/java/android/renderscript/RenderScriptCacheDir.java
parent94d3f53237b26957d0bb4f177ecb6093cb912bf5 (diff)
[Screenshot] Accept data space and pixel format for screenshot.
Previously we always take screenshot in SRGB data space. It's been working well since the screen only has sRGB color. However, since we are moving towards wider color, we can't make this assumption any more. Thus we need to pass the data space and pixel format of the screenshot buffer into SurfaceFlinger and render screenshot in the desired data space and pixel format. BUG: 111436479 BUG: 116112787 Test: Build, flash, boot and take screenshot, observe there's no color shift. Test: Take screenshot, verified the color profile is correct of the png. Change-Id: I9b1a1c878f8099715c2a2c296aaf3419ca6e9bd5
Diffstat (limited to 'rs/java/android/renderscript/RenderScriptCacheDir.java')
0 files changed, 0 insertions, 0 deletions