Index: include/codec/SkCodec.h |
diff --git a/include/codec/SkCodec.h b/include/codec/SkCodec.h |
index c5dc66a4743ff7443b18b97023da5b318bd36456..ced0c630e0816a1088bf1ec7f934a8c7e8548030 100644 |
--- a/include/codec/SkCodec.h |
+++ b/include/codec/SkCodec.h |
@@ -526,6 +526,15 @@ protected: |
sk_sp<SkColorSpace> = nullptr, |
Origin = kTopLeft_Origin); |
+ /** |
+ * Takes ownership of SkStream* |
+ * Allows the subclass to set the recommended SkImageInfo |
+ */ |
+ SkCodec(const SkEncodedInfo&, |
+ const SkImageInfo&, |
+ SkStream*, |
+ Origin = kTopLeft_Origin); |
+ |
virtual SkISize onGetScaledDimensions(float /*desiredScale*/) const { |
// By default, scaling is not supported. |
return this->getInfo().dimensions(); |