Index: third_party/gif/SkGifImageReader.h |
diff --git a/third_party/gif/SkGifImageReader.h b/third_party/gif/SkGifImageReader.h |
index fee1a5f3c76022f97b283bc6f1c39091fabfcfe6..5936350681e6509555fb54f86c8889a3e578ea48 100644 |
--- a/third_party/gif/SkGifImageReader.h |
+++ b/third_party/gif/SkGifImageReader.h |
@@ -86,6 +86,7 @@ enum SkGIFState { |
}; |
struct SkGIFFrameContext; |
+class SkGIFColorMap; |
// LZW decoder state machine. |
class SkGIFLZWContext final : public SkNoncopyable { |
@@ -108,7 +109,7 @@ public: |
, m_frameContext(frameContext) |
{ } |
- bool prepareToDecode(); |
+ bool prepareToDecode(const SkGIFColorMap& globalMap); |
bool outputRow(const unsigned char* rowBegin); |
bool doLZW(const unsigned char* block, size_t bytesInBlock); |
bool hasRemainingRows() { return SkToBool(rowsRemaining); } |
@@ -210,7 +211,7 @@ public: |
m_lzwBlocks.push_back(SkData::MakeWithCopy(data, size)); |
} |
- bool decode(SkGifCodec* client, bool* frameDecoded); |
+ bool decode(SkGifCodec* client, const SkGIFColorMap& globalMap, bool* frameDecoded); |
int frameId() const { return m_frameId; } |
void setRect(unsigned x, unsigned y, unsigned width, unsigned height) |