skia2/third_party/gif
Leon Scroggins III e4ba1059dd GIF: Only report a frame after knowing dependency
Previously, getFrameInfo might report a frame that was truncated prior
to setting its requiredFrame. As a result, fRequiredFrame may be
different depending on how much data has already been received.

If there is a local color table, do not report the frame until the
color table has been received, since that is used to determine
fRequiredFrame. If there is no local color table, set fRequiredFrame
and report the frame after reading the header.

Add a test.

Replace make_from_resource with GetResourceAsData

Change-Id: I1b697f766c1d0e1e12ab2ae1d27167af5193395d
Reviewed-on: https://skia-review.googlesource.com/7756
Reviewed-by: Matt Sarett <msarett@google.com>
Commit-Queue: Leon Scroggins <scroggo@google.com>
2017-01-30 21:22:29 +00:00
..
LICENSE Move third_party/gif's license into its own file 2016-10-24 13:58:28 -07:00
SkGifImageReader.cpp GIF: Only report a frame after knowing dependency 2017-01-30 21:22:29 +00:00
SkGifImageReader.h GIF: Only report a frame after knowing dependency 2017-01-30 21:22:29 +00:00