From 6c08b7bbe47201a21d9e53a907b4baa906bb20b4 Mon Sep 17 00:00:00 2001 From: Chris Blume Date: Thu, 28 Sep 2017 10:23:26 -0700 Subject: Remove unused param to SkGIFFrameContext ctor After updating the transparency index code, the reader parameter to SkGIFFrameContext's ctor is no longer needed. This patch removes it. BUG=skia:7069 Change-Id: If129f825639e8d43d73794adca2de09785f56a3c Reviewed-on: https://skia-review.googlesource.com/52602 Commit-Queue: Chris Blume Commit-Queue: Leon Scroggins Reviewed-by: Leon Scroggins --- third_party/gif/SkGifImageReader.cpp | 2 +- third_party/gif/SkGifImageReader.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'third_party/gif') diff --git a/third_party/gif/SkGifImageReader.cpp b/third_party/gif/SkGifImageReader.cpp index 658e08348f..a54fb59d3b 100644 --- a/third_party/gif/SkGifImageReader.cpp +++ b/third_party/gif/SkGifImageReader.cpp @@ -858,7 +858,7 @@ void SkGifImageReader::addFrameIfNecessary() { if (m_frames.empty() || m_frames.back()->isComplete()) { const int i = m_frames.count(); - m_frames.emplace_back(new SkGIFFrameContext(this, i)); + m_frames.emplace_back(new SkGIFFrameContext(i)); } } diff --git a/third_party/gif/SkGifImageReader.h b/third_party/gif/SkGifImageReader.h index d1063dd843..b5eca10dfb 100644 --- a/third_party/gif/SkGifImageReader.h +++ b/third_party/gif/SkGifImageReader.h @@ -196,7 +196,7 @@ class SkGifImageReader; // LocalFrame output state machine. class SkGIFFrameContext : public SkFrame { public: - SkGIFFrameContext(SkGifImageReader* reader, int id) + SkGIFFrameContext(int id) : INHERITED(id) , m_transparentPixel(SkGIFColorMap::kNotFound) , m_dataSize(0) -- cgit v1.2.3