| 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 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 void setTablePositionAndSize(size_t position, size_t colors) | 164 void setTablePositionAndSize(size_t position, size_t colors) |
| 165 { | 165 { |
| 166 m_position = position; | 166 m_position = position; |
| 167 m_colors = colors; | 167 m_colors = colors; |
| 168 } | 168 } |
| 169 void setDefined() { m_isDefined = true; } | 169 void setDefined() { m_isDefined = true; } |
| 170 bool isDefined() const { return m_isDefined; } | 170 bool isDefined() const { return m_isDefined; } |
| 171 | 171 |
| 172 // Build RGBA table using the data stream. | 172 // Build RGBA table using the data stream. |
| 173 void buildTable(blink::FastSharedBufferReader*); | 173 void buildTable(blink::FastSharedBufferReader*); |
| 174 const Table& table() const { return m_table; } | 174 const Table& getTable() const { return m_table; } |
| 175 | 175 |
| 176 private: | 176 private: |
| 177 bool m_isDefined; | 177 bool m_isDefined; |
| 178 size_t m_position; | 178 size_t m_position; |
| 179 size_t m_colors; | 179 size_t m_colors; |
| 180 Table m_table; | 180 Table m_table; |
| 181 }; | 181 }; |
| 182 | 182 |
| 183 // LocalFrame output state machine. | 183 // LocalFrame output state machine. |
| 184 struct GIFFrameContext { | 184 struct GIFFrameContext { |
| (...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 354 GIFColorMap m_globalColorMap; | 354 GIFColorMap m_globalColorMap; |
| 355 int m_loopCount; // Netscape specific extension block to control the number
of animation loops a GIF renders. | 355 int m_loopCount; // Netscape specific extension block to control the number
of animation loops a GIF renders. |
| 356 | 356 |
| 357 Vector<OwnPtr<GIFFrameContext>> m_frames; | 357 Vector<OwnPtr<GIFFrameContext>> m_frames; |
| 358 | 358 |
| 359 RefPtr<blink::SharedBuffer> m_data; | 359 RefPtr<blink::SharedBuffer> m_data; |
| 360 bool m_parseCompleted; | 360 bool m_parseCompleted; |
| 361 }; | 361 }; |
| 362 | 362 |
| 363 #endif | 363 #endif |
| OLD | NEW |