aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Chris Blume <cblume@google.com>2017-09-28 10:23:26 -0700
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-09-28 17:53:27 +0000
commit6c08b7bbe47201a21d9e53a907b4baa906bb20b4 (patch)
treeb6726bb7ef6199c483dcab1d135d8eaf44592a8f
parent9f8d4d36b514ffe3cc3a4a48900e3dc1fecb2a96 (diff)
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 <cblume@chromium.org> Commit-Queue: Leon Scroggins <scroggo@google.com> Reviewed-by: Leon Scroggins <scroggo@google.com>
-rw-r--r--third_party/gif/SkGifImageReader.cpp2
-rw-r--r--third_party/gif/SkGifImageReader.h2
2 files changed, 2 insertions, 2 deletions
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)