diff options
Diffstat (limited to 'include/codec/SkCodec.h')
-rw-r--r-- | include/codec/SkCodec.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/codec/SkCodec.h b/include/codec/SkCodec.h index fb4f165dbf..8ec44c8539 100644 --- a/include/codec/SkCodec.h +++ b/include/codec/SkCodec.h @@ -846,6 +846,13 @@ private: bool fStartedIncrementalDecode; /** + * Return whether {srcColor, srcIsOpaque, srcCS} can convert to dst. + * + * Will be called for the appropriate frame, prior to initializing the colorXform. + */ + virtual bool conversionSupported(const SkImageInfo& dst, SkEncodedInfo::Color srcColor, + bool srcIsOpaque, const SkColorSpace* srcCS) const; + /** * Return whether these dimensions are supported as a scale. * * The codec may choose to cache the information about scale and subset. |