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

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

Issue 1315583003: Interlaced gifs without the iterator (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Rebase Created 5 years, 3 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
« no previous file with comments | « src/codec/SkCodec_libgif.cpp ('k') | src/codec/SkGifInterlaceIter.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 : SkNoncopyable {
14 public:
15
16 explicit SkGifInterlaceIter(int32_t height);
17
18 /*
19 * Get the next destination y-value
20 */
21 int32_t nextY();
22
23 private:
24
25 /*
26 * Updates the iterator to prepare the next y-value
27 */
28 void prepareY();
29
30 const int32_t fHeight;
31 int32_t fCurrY;
32 int32_t fDeltaY;
33 const uint8_t* fStartYPtr;
34 const uint8_t* fDeltaYPtr;
35 };
OLDNEW
« no previous file with comments | « src/codec/SkCodec_libgif.cpp ('k') | src/codec/SkGifInterlaceIter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698