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

Unified Diff: include/core/SkImageGenerator.h

Issue 1123473004: remove dead code behind BOOL_ONGETINFO (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 8 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 | « include/codec/SkCodec.h ('k') | src/codec/SkCodec.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/core/SkImageGenerator.h
diff --git a/include/core/SkImageGenerator.h b/include/core/SkImageGenerator.h
index 5f8f5ba8fbb5a6632ac6b28a0ab0e5241a29d94a..9760205c64f8069b25633fe7dee1e9f0af0140fe 100644
--- a/include/core/SkImageGenerator.h
+++ b/include/core/SkImageGenerator.h
@@ -67,17 +67,7 @@ public:
/**
* Return the ImageInfo associated with this generator.
*/
-#ifdef SK_SUPPORT_LEGACY_BOOL_ONGETINFO
- SkImageInfo getInfo();
- bool getInfo(SkImageInfo* info) {
- if (info) {
- *info = this->getInfo();
- }
- return true;
- }
-#else
const SkImageInfo& getInfo() const { return fInfo; }
-#endif
/**
* Used to describe the result of a call to getPixels().
@@ -210,10 +200,6 @@ public:
static SkImageGenerator* NewFromData(SkData*);
protected:
-#ifdef SK_SUPPORT_LEGACY_BOOL_ONGETINFO
- SkImageGenerator() : fInfo(SkImageInfo::MakeUnknown(0, 0) ) {}
- virtual bool onGetInfo(SkImageInfo* info);
-#endif
SkImageGenerator(const SkImageInfo& info) : fInfo(info) {}
virtual SkData* onRefEncodedData();
« no previous file with comments | « include/codec/SkCodec.h ('k') | src/codec/SkCodec.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698