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>
This commit is contained in:
Chris Blume 2017-09-28 10:23:26 -07:00 committed by Skia Commit-Bot
parent 9f8d4d36b5
commit 6c08b7bbe4
2 changed files with 2 additions and 2 deletions

View File

@ -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));
}
}

View File

@ -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)