diff options
| author | 2020-11-13 17:42:01 -0800 | |
|---|---|---|
| committer | 2020-11-25 20:14:12 +0000 | |
| commit | 1a4d0649461a73b4905e3cd769079f982908eb07 (patch) | |
| tree | af2b07528ae1900e4dae512deb8f801bc74ee0cf /libs/gui/QueueBufferInputOutput.cpp | |
| parent | c16a77ddf7caf45624dc55a3c2cecd524aeebdd3 (diff) | |
Support linear color transforms in Skia-RenderEngine.
Per-layer color transforms are defined by the HWC spec to apply in linear
space immediately before OETF. Support that by passing an additional
matrix into LinearEffect.
Note that this probably is not the most efficient way to do this at
runtime; when tone mapping is not required and RGB primaries are the
same, we can remove an additional matrix computation, but the number of
shaders cached on-device is cut down this way.
Bug: 164223050
Test: Hack in a color transform and compare gles vs skiagl.
Change-Id: If01995a90a4381d811c39c68cff5983b04e2971d
Diffstat (limited to 'libs/gui/QueueBufferInputOutput.cpp')
0 files changed, 0 insertions, 0 deletions