Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(257)

Side by Side Diff: third_party/WebKit/Source/platform/image-decoders/gif/GIFImageReader.h

Issue 2615813003: Migrate WTF::Vector::append() to ::push_back() [part 14 of N] (Closed)
Patch Set: rebase, small fix in FontSettings.h Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698