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 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 } | 159 } |
160 | 160 |
161 // Set position and number of colors for the RGB table in the data stream. | 161 // Set position and number of colors for the RGB table in the data stream. |
162 void setTablePositionAndSize(size_t position, size_t colors) | 162 void setTablePositionAndSize(size_t position, size_t colors) |
163 { | 163 { |
164 m_position = position; | 164 m_position = position; |
165 m_colors = colors; | 165 m_colors = colors; |
166 } | 166 } |
167 void setDefined() { m_isDefined = true; } | 167 void setDefined() { m_isDefined = true; } |
168 bool isDefined() const { return m_isDefined; } | 168 bool isDefined() const { return m_isDefined; } |
| 169 size_t getPosition() const { return m_position; } |
169 | 170 |
170 // Build RGBA table using the data stream. | 171 // Build RGBA table using the data stream. |
171 void buildTable(blink::FastSharedBufferReader*); | 172 void buildTable(blink::FastSharedBufferReader*); |
172 const Table& table() const { return m_table; } | 173 const Table& table() const { return m_table; } |
173 | 174 |
174 private: | 175 private: |
175 bool m_isDefined; | 176 bool m_isDefined; |
176 size_t m_position; | 177 size_t m_position; |
177 size_t m_colors; | 178 size_t m_colors; |
178 Table m_table; | 179 Table m_table; |
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
352 GIFColorMap m_globalColorMap; | 353 GIFColorMap m_globalColorMap; |
353 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. |
354 | 355 |
355 Vector<OwnPtr<GIFFrameContext>> m_frames; | 356 Vector<OwnPtr<GIFFrameContext>> m_frames; |
356 | 357 |
357 RefPtr<blink::SharedBuffer> m_data; | 358 RefPtr<blink::SharedBuffer> m_data; |
358 bool m_parseCompleted; | 359 bool m_parseCompleted; |
359 }; | 360 }; |
360 | 361 |
361 #endif | 362 #endif |
OLD | NEW |