| OLD | NEW |
| 1 /* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ | 1 /* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ |
| 2 /* ***** BEGIN LICENSE BLOCK ***** | 2 /* ***** BEGIN LICENSE BLOCK ***** |
| 3 * Version: MPL 1.1/GPL 2.0/LGPL 2.1 | 3 * Version: MPL 1.1/GPL 2.0/LGPL 2.1 |
| 4 * | 4 * |
| 5 * The contents of this file are subject to the Mozilla Public License Version | 5 * The contents of this file are subject to the Mozilla Public License Version |
| 6 * 1.1 (the "License"); you may not use this file except in compliance with | 6 * 1.1 (the "License"); you may not use this file except in compliance with |
| 7 * the License. You may obtain a copy of the License at | 7 * the License. You may obtain a copy of the License at |
| 8 * http://www.mozilla.org/MPL/ | 8 * http://www.mozilla.org/MPL/ |
| 9 * | 9 * |
| 10 * Software distributed under the License is distributed on an "AS IS" basis, | 10 * Software distributed under the License is distributed on an "AS IS" basis, |
| (...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 191 m_interlaced(false), | 191 m_interlaced(false), |
| 192 m_delayTime(0), | 192 m_delayTime(0), |
| 193 m_currentLzwBlock(0), | 193 m_currentLzwBlock(0), |
| 194 m_isComplete(false), | 194 m_isComplete(false), |
| 195 m_isHeaderDefined(false), | 195 m_isHeaderDefined(false), |
| 196 m_isDataSizeDefined(false) {} | 196 m_isDataSizeDefined(false) {} |
| 197 | 197 |
| 198 ~GIFFrameContext() {} | 198 ~GIFFrameContext() {} |
| 199 | 199 |
| 200 void addLzwBlock(size_t position, size_t size) { | 200 void addLzwBlock(size_t position, size_t size) { |
| 201 m_lzwBlocks.append(GIFLZWBlock(position, size)); | 201 m_lzwBlocks.push_back(GIFLZWBlock(position, size)); |
| 202 } | 202 } |
| 203 | 203 |
| 204 bool decode(blink::FastSharedBufferReader*, | 204 bool decode(blink::FastSharedBufferReader*, |
| 205 blink::GIFImageDecoder* client, | 205 blink::GIFImageDecoder* client, |
| 206 bool* frameDecoded); | 206 bool* frameDecoded); |
| 207 | 207 |
| 208 int frameId() const { return m_frameId; } | 208 int frameId() const { return m_frameId; } |
| 209 void setRect(unsigned x, unsigned y, unsigned width, unsigned height) { | 209 void setRect(unsigned x, unsigned y, unsigned width, unsigned height) { |
| 210 m_xOffset = x; | 210 m_xOffset = x; |
| 211 m_yOffset = y; | 211 m_yOffset = y; |
| (...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 354 int m_loopCount; // Netscape specific extension block to control the number | 354 int m_loopCount; // Netscape specific extension block to control the number |
| 355 // of animation loops a GIF renders. | 355 // of animation loops a GIF renders. |
| 356 | 356 |
| 357 Vector<std::unique_ptr<GIFFrameContext>> m_frames; | 357 Vector<std::unique_ptr<GIFFrameContext>> m_frames; |
| 358 | 358 |
| 359 RefPtr<blink::SegmentReader> m_data; | 359 RefPtr<blink::SegmentReader> m_data; |
| 360 bool m_parseCompleted; | 360 bool m_parseCompleted; |
| 361 }; | 361 }; |
| 362 | 362 |
| 363 #endif | 363 #endif |
| OLD | NEW |