commit | 85c165b459a47d3d383357c4a460d337f3d3d892 | [log] [tgz] |
---|---|---|
author | Leon Scroggins III <scroggo@google.com> | Tue Dec 01 12:33:43 2020 -0500 |
committer | Leon Scroggins <scroggo@google.com> | Wed Dec 02 20:28:35 2020 +0000 |
tree | 3d82efedba64ebbd469f677a5eb3d0251176b4bd | |
parent | 1ca4d249701d0e5005864c669538e2d4ec171010 [diff] |
Remove extra "+ rowNumber" This was accidentally introduced in https://skia-review.googlesource.com/13274. That CL replaced frameContext->yOffset() + rowNumber + repeatCount with yBegin + rowNumber + repeatCount (ignoring the static_cast), but yBegin = frameContext->yOffset() + rowNumber, so this introduced an extra rowNumber. The error is harmless (yEnd is only compared against yBegin), but this commit makes the line more correct. Change-Id: I5a895eae03cbe55f8cf518d57e08c03400385e1f Reviewed-on: https://skia-review.googlesource.com/c/libgifcodec/+/339830 Commit-Queue: Leon Scroggins <scroggo@google.com> Commit-Queue: Derek Sollenberger <djsollen@google.com> Auto-Submit: Leon Scroggins <scroggo@google.com> Reviewed-by: Derek Sollenberger <djsollen@google.com>
libgifcodec is based on a fork of libgif made by Chromium. It was copied into Skia with https://codereview.chromium.org/2045293002, as https://skia.googlesource.com/skia/+/19b91531e912283d237435d94516575b28713cba.
The header file SkGifCodec.h
exposes two functions:
bool SkGifCodec::IsGif(const void*, size_t);
std::unique_ptr<SkCodec> SkGifCodec::MakeFromStream(std::unique_ptr<SkStream>, SkCodec::Result*);
Which can be used by Skia's SkCodec::MakeFromStream
to implement GIF Decoding.
See LICENSE.md
for the license information.