aboutsummaryrefslogtreecommitdiffhomepage
path: root/third_party/gif/SkGifImageReader.h
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/gif/SkGifImageReader.h')
-rw-r--r--third_party/gif/SkGifImageReader.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/third_party/gif/SkGifImageReader.h b/third_party/gif/SkGifImageReader.h
index 49655c23df..f105a1de87 100644
--- a/third_party/gif/SkGifImageReader.h
+++ b/third_party/gif/SkGifImageReader.h
@@ -289,6 +289,7 @@ public:
, m_streamBuffer(stream)
, m_parseCompleted(false)
, m_firstFrameHasAlpha(false)
+ , m_firstFrameSupportsIndex8(false)
{
}
@@ -366,6 +367,8 @@ public:
bool firstFrameHasAlpha() const { return m_firstFrameHasAlpha; }
+ bool firstFrameSupportsIndex8() const { return m_firstFrameSupportsIndex8; }
+
// Helper function that returns whether an SkGIFFrameContext has transparency.
// This method is sometimes called before creating one/parsing its color map,
// so it cannot rely on SkGIFFrameContext::transparentPixel or ::localColorMap().
@@ -407,9 +410,10 @@ private:
SkStreamBuffer m_streamBuffer;
bool m_parseCompleted;
- // This value can be computed before we create a SkGIFFrameContext, so we
- // store it here instead of on m_frames[0].
+ // These values can be computed before we create a SkGIFFrameContext, so we
+ // store them here instead of on m_frames[0].
bool m_firstFrameHasAlpha;
+ bool m_firstFrameSupportsIndex8;
};
#endif