summaryrefslogtreecommitdiff
path: root/opengl/tests/gl_basic/gl_basic.cpp
diff options
context:
space:
mode:
authorChia-I Wu <olv@google.com>2018-02-20 13:04:50 -0800
committerChia-I Wu <olv@google.com>2018-02-28 08:47:09 -0800
commit69bf10f5ea9b8abce49d49235630388dd57d3e62 (patch)
tree592ff19a0b3e5d6a389941f52b4f71dae422a063 /opengl/tests/gl_basic/gl_basic.cpp
parent4b0e4ddf448f14198c578a71fae888025ab5964f (diff)
surfaceflinger: simplify P3 support in RE
RE always knows how to convert sRGB/P3/BT2020 to P3. The conversion is enabled by SurfaceFlinger whenever the color mode is P3 (and when hasWideColorDisplay is true). This change simplifies or removes some wide color state functions from RE, and moves the burden to SurfaceFlinger. It also changes GLES20RenderEngine::drawMesh to inspect mDataSpace and mOutputDataSpace directly. This allows us to enable the conversion in more cases more easily. For example, we can choose to set the RE output dataspace to P3 even when the display color mode is NATIVE. Test: manual with UiBench Change-Id: I5e701dd6b01764efbbab967dc4a26a4d008dfc09
Diffstat (limited to 'opengl/tests/gl_basic/gl_basic.cpp')
0 files changed, 0 insertions, 0 deletions