Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(63)

Issue 1412423008: Handling large jpegs in CPU raster - downsample to display res and 565

Created:
5 years, 2 months ago by aleksandar.stojiljkovic
Modified:
5 years, 2 months ago
Reviewers:
reed1
CC:
reviews_skia.org
Base URL:
https://chromium.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Handling 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+142 lines, -26 lines) Patch
M include/core/SkImageGenerator.h View 2 chunks +55 lines, -0 lines 0 comments Download
M src/core/SkDevice.cpp View 1 chunk +15 lines, -2 lines 0 comments Download
M src/core/SkImageCacherator.h View 2 chunks +3 lines, -3 lines 0 comments Download
M src/core/SkImageCacherator.cpp View 5 chunks +37 lines, -11 lines 0 comments Download
M src/core/SkImageGenerator.cpp View 1 chunk +21 lines, -0 lines 0 comments Download
M src/core/SkResourceCache.cpp View 1 chunk +1 line, -1 line 0 comments Download
M src/image/SkImage_Base.h View 1 chunk +3 lines, -2 lines 0 comments Download
M src/image/SkImage_Generator.cpp View 2 chunks +3 lines, -3 lines 0 comments Download
M src/image/SkImage_Gpu.h View 1 chunk +1 line, -1 line 0 comments Download
M src/image/SkImage_Gpu.cpp View 1 chunk +1 line, -1 line 0 comments Download
M src/image/SkImage_Raster.cpp View 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 5 (3 generated)
aleksandar.stojiljkovic
I continued with work proposed in prototype: Issue 1395593004 Decode and render images in display ...
5 years, 2 months ago (2015-10-23 09:07:17 UTC) #3
aleksandar.stojiljkovic
5 years, 2 months ago (2015-10-23 09:08:57 UTC) #5

          

Powered by Google App Engine
This is Rietveld 408576698