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

Side by Side Diff: src/codec/SkGifInterlaceIter.h

Issue 1022673011: Creating a new wrapper for gif decoder (Closed) Base URL: https://skia.googlesource.com/skia.git@ico-real
Patch Set: Adding gif functionality to SkCodec Created 5 years, 9 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
(Empty)
1 /*
2 * Copyright 2015 The Android Open Source Project
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7
8 #include "SkTypes.h"
9
10 /*
11 * Helper class to determine the destination y-values for interlaced gifs
12 */
13 class SkGifInterlaceIter {
scroggo 2015/03/25 19:44:49 Unless you want this to be copyable, make it inher
msarett 2015/03/26 19:15:57 Done.
14 public:
15
16 /*
17 * Constructor
scroggo 2015/03/25 19:44:49 This comment does not provide any useful informati
msarett 2015/03/26 19:15:57 Done.
18 */
19 SkGifInterlaceIter(int height);
scroggo 2015/03/25 19:44:49 We typically declare constructors that take one pa
msarett 2015/03/26 19:15:57 Done.
20
21 /*
22 * Get the next destination y-value
23 */
24 uint32_t nextY();
scroggo 2015/03/25 19:44:49 It's weird that this returns a uint32_t while we c
msarett 2015/03/26 19:15:57 This code now deals with int32_t uniformly.
25
26 private:
27
28 /*
29 * Updates the iterator to prepare the next y-value
30 */
31 void prepareY();
32
33 // Fields
scroggo 2015/03/25 19:44:49 Again, this comment is unnecessary.
msarett 2015/03/26 19:15:57 Done.
34 const uint32_t fHeight;
35 int32_t fCurrY;
36 int32_t fDeltaY;
37 const uint8_t* fStartYPtr;
38 const uint8_t* fDeltaYPtr;
39 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698