Chromium Code Reviews
DescriptionRaster: Allow a RasterSource to specify its color space
The pictures recorded by GraphicsLayers in Blink have a particular
implied color space in the recorded content. This is the color space
that the decoded images are in (and soon to be the color space that
CSS colors are converted into from sRGB).
We need to communicate that information from Blink to cc, so that
the resulting cc::Resources can be tagged with the appropriate color
space.
Plumb this through the same channel in WebDisplayItemList that is
used for "IsSuitableForGpuRasterization".
Of note is that "true color mode" content (content that does linear
blending) has the luxury of being able to decide the target color
space at raster time -- it does not have an implied color space.
BUG=667411
CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel
Committed: https://crrev.com/b7210d35c666575a48ed600d7758c451220b09b8
Cr-Commit-Position: refs/heads/master@{#435212}
Patch Set 1 #Patch Set 2 : Rebase #Patch Set 3 : No default value #Patch Set 4 : Move to Input #Patch Set 5 : Rebase #Patch Set 6 : Only set implied space when color correct rendering is disabled #Messages
Total messages: 46 (32 generated)
|