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

Unified Diff: Source/platform/graphics/DecodingImageGenerator.h

Issue 304353008: move to new ImageGenerator API (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | Source/platform/graphics/DecodingImageGenerator.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/graphics/DecodingImageGenerator.h
diff --git a/Source/platform/graphics/DecodingImageGenerator.h b/Source/platform/graphics/DecodingImageGenerator.h
index 145c6457ded2769158a4de6c831af935b68ef953..fe5cb00b60dc3e0bdaf92b05142e94ad519763c2 100644
--- a/Source/platform/graphics/DecodingImageGenerator.h
+++ b/Source/platform/graphics/DecodingImageGenerator.h
@@ -47,13 +47,13 @@ public:
DecodingImageGenerator(PassRefPtr<ImageFrameGenerator>, const SkImageInfo&, size_t index);
virtual ~DecodingImageGenerator();
- // SkImageGenerator implementation.
- virtual SkData* refEncodedData() OVERRIDE;
- virtual bool getInfo(SkImageInfo*) OVERRIDE;
- virtual bool getPixels(const SkImageInfo&, void* pixels, size_t rowBytes) OVERRIDE;
-
void setGenerationId(size_t id) { m_generationId = id; }
+protected:
+ virtual SkData* onRefEncodedData() OVERRIDE;
+ virtual bool onGetInfo(SkImageInfo*) OVERRIDE;
+ virtual bool onGetPixels(const SkImageInfo&, void* pixels, size_t rowBytes, SkPMColor ctable[], int* ctableCount) OVERRIDE;
+
private:
RefPtr<ImageFrameGenerator> m_frameGenerator;
SkImageInfo m_imageInfo;
« no previous file with comments | « no previous file | Source/platform/graphics/DecodingImageGenerator.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698