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

Issue 59823010: DecodingImageGenerator implmentation of SkImageGenerator (Closed)

Created:
7 years, 1 month ago by hal.canary
Modified:
6 years, 11 months ago
Reviewers:
CC:
blink-reviews, jamesr, krit, dsinclair, danakj, Rik, Stephen Chennney, pdr., rwlbuis
Visibility:
Public.

Description

DecodingImageGenerator implmentation of SkImageGenerator Add new DecodingImageGenerator class, which is Blink's implementation of the Skia SkImageGenerator interface. This is an interface that allows a SkDiscardablePixelRef to re-decode an image. This is only a proof-of-concept for the SkImageGenerator interface. This depends on <https://codereview.chromium.org/74793011/>; TODO: - The interface between the DecodingImageGenerator and the ImageFrameGenerator objects needs to be improved to reduce memory copying. - Use this class in the DeferredImageDecoder: SkBitmap DeferredImageDecoder::createLazyDecodingBitmap(size_t index) { SkBitmap bitmap; (void)DecodingImageGenerator::Install(m_frameGenerator, index, &bitmap); return bitmap; } BUG=

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+241 lines, -0 lines) Patch
M Source/core/core.gypi View 1 chunk +2 lines, -0 lines 0 comments Download
A Source/core/platform/graphics/DecodingImageGenerator.h View 1 chunk +79 lines, -0 lines 0 comments Download
A Source/core/platform/graphics/DecodingImageGenerator.cpp View 1 chunk +160 lines, -0 lines 0 comments Download

Powered by Google App Engine
This is Rietveld 408576698