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
Loading
Please register or sign in to comment