Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright 2015 The Android Open Source Project | 2 * Copyright 2015 The Android Open Source Project |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
| 6 */ | 6 */ |
| 7 | 7 |
| 8 #include "SkTypes.h" | 8 #include "SkTypes.h" |
| 9 | 9 |
| 10 /* | 10 /* |
| 11 * Helper class to determine the destination y-values for interlaced gifs | 11 * Helper class to determine the destination y-values for interlaced gifs |
| 12 */ | 12 */ |
| 13 class SkGifInterlaceIter : SkNoncopyable { | 13 class SkGifInterlaceIter { |
|
msarett
2015/08/24 23:20:13
I think the scanline decoder needs this to be copy
scroggo
2015/08/27 16:35:50
That is correct.
| |
| 14 public: | 14 public: |
| 15 | 15 |
| 16 explicit SkGifInterlaceIter(int32_t height); | 16 explicit SkGifInterlaceIter(int32_t height); |
| 17 | 17 |
| 18 /* | 18 /* |
| 19 * Get the next destination y-value | 19 * Get the next destination y-value |
| 20 */ | 20 */ |
| 21 int32_t nextY(); | 21 int32_t nextY(); |
| 22 | 22 |
| 23 private: | 23 private: |
| 24 | 24 |
| 25 /* | 25 /* |
| 26 * Updates the iterator to prepare the next y-value | 26 * Updates the iterator to prepare the next y-value |
| 27 */ | 27 */ |
| 28 void prepareY(); | 28 void prepareY(); |
| 29 | 29 |
| 30 const int32_t fHeight; | 30 int32_t fHeight; |
| 31 int32_t fCurrY; | 31 int32_t fCurrY; |
| 32 int32_t fDeltaY; | 32 int32_t fDeltaY; |
| 33 const uint8_t* fStartYPtr; | 33 const uint8_t* fStartYPtr; |
| 34 const uint8_t* fDeltaYPtr; | 34 const uint8_t* fDeltaYPtr; |
| 35 }; | 35 }; |
| OLD | NEW |