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

Unified Diff: include/core/SkImageGenerator.h

Issue 1229933003: add runtime option to provide data->imagegenerator factory (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebase Created 5 years, 5 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
Index: include/core/SkImageGenerator.h
diff --git a/include/core/SkImageGenerator.h b/include/core/SkImageGenerator.h
index a398697e6ba4eaa1f521bbf6f2107f1af4876f82..46001c85370755ef69e28f2cc9f842268815ddcf 100644
--- a/include/core/SkImageGenerator.h
+++ b/include/core/SkImageGenerator.h
@@ -199,7 +199,7 @@ public:
* this returns a new ImageGenerator for it. Otherwise this returns NULL. Either way
* the caller is still responsible for managing their ownership of the data.
*/
- static SkImageGenerator* NewFromData(SkData*);
+ static SkImageGenerator* NewFromEncoded(SkData*);
protected:
SkImageGenerator(const SkImageInfo& info) : fInfo(info) {}
@@ -220,6 +220,8 @@ protected:
private:
const SkImageInfo fInfo;
+
+ static SkImageGenerator* NewFromEncodedImpl(SkData*);
scroggo 2015/07/09 19:01:15 Maybe add a comment that the implementation does n
reed1 2015/07/09 19:05:45 Will do
};
#endif // SkImageGenerator_DEFINED

Powered by Google App Engine
This is Rietveld 408576698