Index: include/codec/SkCodec.h |
diff --git a/include/codec/SkCodec.h b/include/codec/SkCodec.h |
index 6d0557cb28d22445c9dd9de1550e8a99eea97e6a..3550bb183108ebc21b7a52c7b5eca2b5be67cce1 100644 |
--- a/include/codec/SkCodec.h |
+++ b/include/codec/SkCodec.h |
@@ -58,10 +58,12 @@ protected: |
* initially returns a non-opaque answer, but completing the decode |
* reveals that the image is actually opaque. |
*/ |
+#ifdef SK_SUPPORT_LEGACY_BOOL_ONGETINFO |
bool onGetInfo(SkImageInfo* info) SK_OVERRIDE { |
*info = fInfo; |
return true; |
} |
+#endif |
// Helper for subclasses. |
const SkImageInfo& getOriginalInfo() { return fInfo; } |
@@ -99,5 +101,7 @@ private: |
const SkImageInfo fInfo; |
SkAutoTDelete<SkStream> fStream; |
bool fNeedsRewind; |
+ |
+ typedef SkImageGenerator INHERITED; |
}; |
#endif // SkCodec_DEFINED |