diff options
| author | 2024-06-04 03:28:39 +0000 | |
|---|---|---|
| committer | 2024-06-05 19:07:28 +0000 | |
| commit | 0d83185e4bc75d2c3163d066ba26f111ea0da0e8 (patch) | |
| tree | d40e9faaa082801b446cca593dc4373a21628d29 /libs/androidfw/FileStream.cpp | |
| parent | 328a9f17435ca5908b0063011315ee0a246c76ff (diff) | |
Short circuit the gainmap shader if we would not apply the gainmap
This is needed for correctness when authoring to a PDF. The gainmap
shader otherwise manually de-gammas into a working space to do the
gainmap math, then uses toLinearSrgb to re-gamma to the destination
space.
But, SkPicture records commands while being colorspace agnostic, so
manually de-gammaing means we never re-gamma, which has the effect over
crushing the resulting image.
This is probably also nice for performance too, because we avoid
sampling the gainmap and a bunch of math operations.
Bug: 341006313
Test: Photos > 1up > Print
Flag: EXEMPT low risk bug fix
Change-Id: Id2de97b112a8eff8ef56a802a3f44d83abdd6d41
Diffstat (limited to 'libs/androidfw/FileStream.cpp')
0 files changed, 0 insertions, 0 deletions