Apply SDR white level scaling to YUV quads in Skia renderer
This is the same strategy used by gl_renderer. It's potentially expensive, because the transform matrix values are baked into the shader source, so dragging the slider could cause many shaders to be generated. A better solution might be to inject a scale step in the ColorTransform that refers to a uniform. Doing so would require changing the signature of NewColorTransform (or adding NewScaledColorTransform), and creates a leaky abstraction that may not be worth it, given the rarity of this case. Bug: chromium:985500 Change-Id: Ifae5e595fa76c84b0535ae6ca222bf7bf088883f Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1919419Reviewed-by:kylechar <kylechar@chromium.org> Commit-Queue: Brian Osman <brianosman@google.com> Cr-Commit-Position: refs/heads/master@{#715812}
Showing
Please register or sign in to comment