| 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 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 241 void setDataSize(int size) | 241 void setDataSize(int size) |
| 242 { | 242 { |
| 243 m_dataSize = size; | 243 m_dataSize = size; |
| 244 m_isDataSizeDefined = true; | 244 m_isDataSizeDefined = true; |
| 245 } | 245 } |
| 246 bool progressiveDisplay() const { return m_progressiveDisplay; } | 246 bool progressiveDisplay() const { return m_progressiveDisplay; } |
| 247 void setProgressiveDisplay(bool progressiveDisplay) { m_progressiveDisplay =
progressiveDisplay; } | 247 void setProgressiveDisplay(bool progressiveDisplay) { m_progressiveDisplay =
progressiveDisplay; } |
| 248 bool interlaced() const { return m_interlaced; } | 248 bool interlaced() const { return m_interlaced; } |
| 249 void setInterlaced(bool interlaced) { m_interlaced = interlaced; } | 249 void setInterlaced(bool interlaced) { m_interlaced = interlaced; } |
| 250 | 250 |
| 251 void clearDecodeState() { m_lzwContext.clear(); } | 251 void clearDecodeState() { m_lzwContext.reset(); } |
| 252 const GIFColorMap& localColorMap() const { return m_localColorMap; } | 252 const GIFColorMap& localColorMap() const { return m_localColorMap; } |
| 253 GIFColorMap& localColorMap() { return m_localColorMap; } | 253 GIFColorMap& localColorMap() { return m_localColorMap; } |
| 254 | 254 |
| 255 private: | 255 private: |
| 256 int m_frameId; | 256 int m_frameId; |
| 257 unsigned m_xOffset; | 257 unsigned m_xOffset; |
| 258 unsigned m_yOffset; // With respect to "screen" origin. | 258 unsigned m_yOffset; // With respect to "screen" origin. |
| 259 unsigned m_width; | 259 unsigned m_width; |
| 260 unsigned m_height; | 260 unsigned m_height; |
| 261 size_t m_transparentPixel; // Index of transparent pixel. Value is kNotFound
if there is no transparent pixel. | 261 size_t m_transparentPixel; // Index of transparent pixel. Value is kNotFound
if there is no transparent pixel. |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 353 GIFColorMap m_globalColorMap; | 353 GIFColorMap m_globalColorMap; |
| 354 int m_loopCount; // Netscape specific extension block to control the number
of animation loops a GIF renders. | 354 int m_loopCount; // Netscape specific extension block to control the number
of animation loops a GIF renders. |
| 355 | 355 |
| 356 Vector<OwnPtr<GIFFrameContext>> m_frames; | 356 Vector<OwnPtr<GIFFrameContext>> m_frames; |
| 357 | 357 |
| 358 RefPtr<blink::SegmentReader> m_data; | 358 RefPtr<blink::SegmentReader> m_data; |
| 359 bool m_parseCompleted; | 359 bool m_parseCompleted; |
| 360 }; | 360 }; |
| 361 | 361 |
| 362 #endif | 362 #endif |
| OLD | NEW |