aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/codec
diff options
context:
space:
mode:
Diffstat (limited to 'include/codec')
-rw-r--r--include/codec/SkCodec.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/include/codec/SkCodec.h b/include/codec/SkCodec.h
index 4773d20a0c..6b3aa5e020 100644
--- a/include/codec/SkCodec.h
+++ b/include/codec/SkCodec.h
@@ -23,8 +23,8 @@
#include <vector>
class SkColorSpace;
-class SkColorSpaceXform;
class SkData;
+class SkFrameHolder;
class SkPngChunkReader;
class SkSampler;
@@ -880,6 +880,18 @@ private:
return dim == fSrcInfo.dimensions() || this->onDimensionsSupported(dim);
}
+ /**
+ * For multi-framed images, return the object with information about the frames.
+ */
+ virtual const SkFrameHolder* getFrameHolder() const {
+ return nullptr;
+ }
+
+ /**
+ * Check for a valid Options.fFrameIndex, and decode prior frames if necessary.
+ */
+ Result handleFrameIndex(const SkImageInfo&, void* pixels, size_t rowBytes, const Options&);
+
// Methods for scanline decoding.
virtual Result onStartScanlineDecode(const SkImageInfo& /*dstInfo*/,
const Options& /*options*/, SkPMColor* /*ctable*/, int* /*ctableCount*/) {