Index: include/codec/SkCodec.h |
diff --git a/include/codec/SkCodec.h b/include/codec/SkCodec.h |
index 3550bb183108ebc21b7a52c7b5eca2b5be67cce1..ec4b3e1cc80832090c1389823b7e206ab6e97783 100644 |
--- a/include/codec/SkCodec.h |
+++ b/include/codec/SkCodec.h |
@@ -8,6 +8,7 @@ |
#ifndef SkCodec_DEFINED |
#define SkCodec_DEFINED |
+#include "SkEncodedFormat.h" |
#include "SkImageGenerator.h" |
#include "SkImageInfo.h" |
#include "SkSize.h" |
@@ -50,6 +51,11 @@ public: |
return this->onGetScaledDimensions(desiredScale); |
} |
+ /** |
+ * Format of the encoded data. |
+ */ |
+ SkEncodedFormat getEncodedFormat() const { return this->onGetEncodedFormat(); } |
+ |
protected: |
SkCodec(const SkImageInfo&, SkStream*); |
@@ -73,6 +79,8 @@ protected: |
return fInfo.dimensions(); |
} |
+ virtual SkEncodedFormat onGetEncodedFormat() const = 0; |
+ |
/** |
* If the stream was previously read, attempt to rewind. |
* @returns: |