DescriptionHandling large jpegs in CPU raster - downsample to display res and 565
Blink decoder implementation, corresponding to this change is in:
crrev.com/1403393004#ps40001
Cacherator gets requested size from SkBaseDevice attempting draw,
if cache contains lower res or if it doesnt contain the resource,
generator is asked about capabilities to decode to rgb565 and downsample
to scale equal or higher than the one needed for display.
generator can answer that scale, colortype or both are available in one call.
Disclaimer:
Initial implementation covers CPU raster only and SkBaseDevice::drawImageRect,
as that place is the only one identified to invoke decoding in related
bug 472630. Once the test for drawImage is identified, implementation
would extend to it. GPU raster planned for later, too.
BUG=chromium:438323, chromium:472630
Patch Set 1 #
Messages
Total messages: 5 (3 generated)
|