| OLD | NEW |
| (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 }; | |
| OLD | NEW |