Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit d2bcbaeb authored by Alec Mouri's avatar Alec Mouri
Browse files

Fix color shift between gles and skiagl without color management

Legacy GLESRenderEngine treated all dataspaces as having BT.709
primaries with a linear transfer function when color management was not
supported. SkiaGLRenderEngine had a behavior change when color
management was not supported where if there needed to be a LinearEffect
applied due to applying a color transform in linear space, then transfer
function for the layer was tagged as UNKNOWN, which is treated as sRGB.

To solve this, when color management is not used then reinterpret all
dataspaces as V0_SRGB_LINEAR, which emulates the behavior for legacy
GLESRenderEngine so that devices that are not color managed will not
exhibit a behavior change when switching to the skia backend.

Bug: 189935602
Test: librenderengine_test
Change-Id: Ie64783391befc13b9aff804f799c3c3d1dbbff83
parent 076276f7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment