aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm/animatedGif.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gm/animatedGif.cpp')
-rw-r--r--gm/animatedGif.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/gm/animatedGif.cpp b/gm/animatedGif.cpp
index 5f4fe71cb0..80bcdd9ee2 100644
--- a/gm/animatedGif.cpp
+++ b/gm/animatedGif.cpp
@@ -53,7 +53,6 @@ private:
SkCodec::Options opts;
opts.fFrameIndex = frameIndex;
- opts.fHasPriorFrame = false;
const int requiredFrame = fFrameInfos[frameIndex].fRequiredFrame;
if (requiredFrame != SkCodec::kNone) {
SkASSERT(requiredFrame >= 0
@@ -62,7 +61,7 @@ private:
// For simplicity, do not try to cache old frames
if (requiredBitmap.getPixels() &&
sk_tool_utils::copy_to(&bm, requiredBitmap.colorType(), requiredBitmap)) {
- opts.fHasPriorFrame = true;
+ opts.fPriorFrame = requiredFrame;
}
}