Index: include/codec/SkCodec.h |
diff --git a/include/codec/SkCodec.h b/include/codec/SkCodec.h |
index 6d0557cb28d22445c9dd9de1550e8a99eea97e6a..6345c8d475881da4ae7b0c79039b4ab976e3e9dc 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*); |
@@ -71,6 +77,8 @@ protected: |
return fInfo.dimensions(); |
} |
+ virtual SkEncodedFormat onGetEncodedFormat() const = 0; |
+ |
/** |
* If the stream was previously read, attempt to rewind. |
* @returns: |