diff options
author | Leon Scroggins III <scroggo@google.com> | 2016-12-08 11:38:58 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2016-12-14 18:39:34 +0000 |
commit | 3639faada2e7b59de20de82b7d2786c8eb2e32e6 (patch) | |
tree | dbf4ada3fec142cd79999ac1630733b820f159a1 /src/codec/SkGifCodec.cpp | |
parent | 19d20c6176e8fe955d115e30882fc6f366523214 (diff) |
Add SkCodec::FrameInfo::fFullyReceived
This indicates whether the frame has been fully received, i.e. the
stream contains enough data to decode to the end of the frame.
A client may want to use this to know whether they should attempt to
decode this frame, if they do not want to decode partial frames.
Change-Id: I336c7031b0c0b8c1401ce040f5372aedc87fdc14
Reviewed-on: https://skia-review.googlesource.com/5703
Reviewed-by: Chris Blume <cblume@google.com>
Reviewed-by: Derek Sollenberger <djsollen@google.com>
Commit-Queue: Leon Scroggins <scroggo@google.com>
Diffstat (limited to 'src/codec/SkGifCodec.cpp')
-rw-r--r-- | src/codec/SkGifCodec.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/codec/SkGifCodec.cpp b/src/codec/SkGifCodec.cpp index 7b07f2a59a..9c7746da65 100644 --- a/src/codec/SkGifCodec.cpp +++ b/src/codec/SkGifCodec.cpp @@ -140,6 +140,7 @@ std::vector<SkCodec::FrameInfo> SkGifCodec::onGetFrameInfo() { const SkGIFFrameContext* frameContext = fReader->frameContext(i); result[i].fDuration = frameContext->delayTime(); result[i].fRequiredFrame = frameContext->getRequiredFrame(); + result[i].fFullyReceived = frameContext->isComplete(); } return result; } |