diff options
Diffstat (limited to 'third_party/gif/SkGifImageReader.h')
-rw-r--r-- | third_party/gif/SkGifImageReader.h | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/third_party/gif/SkGifImageReader.h b/third_party/gif/SkGifImageReader.h index 5b9cdd5ec8..d1063dd843 100644 --- a/third_party/gif/SkGifImageReader.h +++ b/third_party/gif/SkGifImageReader.h @@ -198,7 +198,6 @@ class SkGIFFrameContext : public SkFrame { public: SkGIFFrameContext(SkGifImageReader* reader, int id) : INHERITED(id) - , m_owner(reader) , m_transparentPixel(SkGIFColorMap::kNotFound) , m_dataSize(0) , m_progressiveDisplay(false) @@ -251,9 +250,6 @@ protected: bool onReportsAlpha() const override; private: - // Unowned pointer to the object that owns this frame. - const SkGifImageReader* m_owner; - int m_transparentPixel; // Index of transparent pixel. Value is kNotFound if there is no transparent pixel. int m_dataSize; @@ -361,11 +357,6 @@ public: bool firstFrameHasAlpha() const { return m_firstFrameHasAlpha; } - // 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(). - bool hasTransparency(int transPix, bool hasLocalColorMap, int localMapColors) const; - protected: const SkFrame* onGetFrame(int i) const override { return static_cast<const SkFrame*>(this->frameContext(i)); |