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

Unified Diff: tools/SkBitmapRegionDecoder.h

Issue 1415243007: Rename SkBitmapRegionDecoder and Create function (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 1 month 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/SkBitmapRegionCodec.h ('k') | tools/SkBitmapRegionDecoder.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/SkBitmapRegionDecoder.h
diff --git a/tools/SkBitmapRegionDecoderInterface.h b/tools/SkBitmapRegionDecoder.h
similarity index 91%
rename from tools/SkBitmapRegionDecoderInterface.h
rename to tools/SkBitmapRegionDecoder.h
index 8e19e95a0a9867557dce940725d6b714e46627e8..618ab16f5ddb98e6e60c252da5df889430034e08 100644
--- a/tools/SkBitmapRegionDecoderInterface.h
+++ b/tools/SkBitmapRegionDecoder.h
@@ -16,7 +16,7 @@
* This class aims to provide an interface to test multiple implementations of
* SkBitmapRegionDecoder.
*/
-class SkBitmapRegionDecoderInterface {
+class SkBitmapRegionDecoder {
public:
enum Strategy {
@@ -30,7 +30,7 @@ public:
* @param strategy Strategy used for scaling and subsetting
* @return Tries to create an SkBitmapRegionDecoder, returns NULL on failure
*/
- static SkBitmapRegionDecoderInterface* CreateBitmapRegionDecoder(
+ static SkBitmapRegionDecoder* Create(
SkData* data, Strategy strategy);
/*
@@ -38,7 +38,7 @@ public:
* @param strategy Strategy used for scaling and subsetting
* @return Tries to create an SkBitmapRegionDecoder, returns NULL on failure
*/
- static SkBitmapRegionDecoderInterface* CreateBitmapRegionDecoder(
+ static SkBitmapRegionDecoder* Create(
SkStreamRewindable* stream, Strategy strategy);
/*
@@ -73,11 +73,11 @@ public:
int width() const { return fWidth; }
int height() const { return fHeight; }
- virtual ~SkBitmapRegionDecoderInterface() {}
+ virtual ~SkBitmapRegionDecoder() {}
protected:
- SkBitmapRegionDecoderInterface(int width, int height)
+ SkBitmapRegionDecoder(int width, int height)
: fWidth(width)
, fHeight(height)
{}
« no previous file with comments | « tools/SkBitmapRegionCodec.h ('k') | tools/SkBitmapRegionDecoder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698