Index: Source/core/platform/image-decoders/ImageDecoder.h |
diff --git a/Source/core/platform/image-decoders/ImageDecoder.h b/Source/core/platform/image-decoders/ImageDecoder.h |
index a5dab7944f45c872daa5d0ea27132c8151e73dae..c0d48abe6284608c78e6789c10f6cae3eaf9495e 100644 |
--- a/Source/core/platform/image-decoders/ImageDecoder.h |
+++ b/Source/core/platform/image-decoders/ImageDecoder.h |
@@ -293,6 +293,13 @@ namespace WebCore { |
// Make the best effort guess to check if the requested frame has alpha channel. |
virtual bool frameHasAlphaAtIndex(size_t) const; |
+ // Whether or not the frame is fully received. |
+ // TODO: There should be a non-trivial default implementation. |
+ virtual bool frameIsCompleteAtIndex(size_t) const { return false; } |
+ |
+ // Duration for displaying a frame in seconds. This method is used by animated images only. |
+ virtual float frameDurationAtIndex(size_t) const { return 0; } |
+ |
// Number of bytes in the decoded frame requested. Return 0 if not yet decoded. |
virtual unsigned frameBytesAtIndex(size_t) const; |