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

Unified Diff: tools/SkBitmapRegionCodec.h

Issue 1402863002: Implementation of SkBitmapRegionDecoder using SkAndroidCodec (Closed) Base URL: https://skia.googlesource.com/skia.git@split1
Patch Set: Add AndroidCodec strategy to benchmark Created 5 years, 2 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 | « tools/SkBitmapRegionCanvas.cpp ('k') | tools/SkBitmapRegionCodec.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/SkBitmapRegionCodec.h
diff --git a/tools/SkBitmapRegionCanvas.h b/tools/SkBitmapRegionCodec.h
similarity index 60%
copy from tools/SkBitmapRegionCanvas.h
copy to tools/SkBitmapRegionCodec.h
index f82e9fa77a941b01dee6d746d2a2fb02006ea40e..14d024ea4542ed8d5c49ff237644109858c05410 100644
--- a/tools/SkBitmapRegionCanvas.h
+++ b/tools/SkBitmapRegionCodec.h
@@ -7,22 +7,18 @@
#include "SkBitmap.h"
#include "SkBitmapRegionDecoderInterface.h"
-#include "SkCodec.h"
+#include "SkAndroidCodec.h"
/*
- * This class implements SkBitmapRegionDecoder using an SkCodec and
- * an SkCanvas. It uses the scanline decoder to subset the height. It then
- * will subset the width and scale by drawing to an SkCanvas.
+ * This class implements SkBitmapRegionDecoder using an SkAndroidCodec.
*/
-// FIXME (msarett): This implementation does not support WEBP, because WEBP
-// does not have a scanline decoder.
-class SkBitmapRegionCanvas : public SkBitmapRegionDecoderInterface {
+class SkBitmapRegionCodec : public SkBitmapRegionDecoderInterface {
public:
/*
- * Takes ownership of pointer to decoder
+ * Takes ownership of pointer to codec
*/
- SkBitmapRegionCanvas(SkCodec* decoder);
+ SkBitmapRegionCodec(SkAndroidCodec* codec);
/*
* Three differences from the Android version:
@@ -38,7 +34,7 @@ public:
private:
- SkAutoTDelete<SkCodec> fDecoder;
+ SkAutoTDelete<SkAndroidCodec> fCodec;
typedef SkBitmapRegionDecoderInterface INHERITED;
« no previous file with comments | « tools/SkBitmapRegionCanvas.cpp ('k') | tools/SkBitmapRegionCodec.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698