OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2012 Google Inc. | 3 * Copyright 2012 Google Inc. |
4 * | 4 * |
5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
7 */ | 7 */ |
8 | 8 |
9 #ifndef SkTileGrid_DEFINED | 9 #ifndef SkTileGrid_DEFINED |
10 #define SkTileGrid_DEFINED | 10 #define SkTileGrid_DEFINED |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 */ | 48 */ |
49 virtual void search(const SkIRect& query, SkTDArray<void*>* results) SK_OVER
RIDE; | 49 virtual void search(const SkIRect& query, SkTDArray<void*>* results) SK_OVER
RIDE; |
50 | 50 |
51 virtual void clear() SK_OVERRIDE; | 51 virtual void clear() SK_OVERRIDE; |
52 | 52 |
53 /** | 53 /** |
54 * Gets the number of insertions | 54 * Gets the number of insertions |
55 */ | 55 */ |
56 virtual int getCount() const SK_OVERRIDE; | 56 virtual int getCount() const SK_OVERRIDE; |
57 | 57 |
| 58 virtual void rewindInserts() SK_OVERRIDE; |
| 59 |
58 // Used by search() and in SkTileGridHelper implementations | 60 // Used by search() and in SkTileGridHelper implementations |
59 enum { | 61 enum { |
60 kTileFinished = -1, | 62 kTileFinished = -1, |
61 }; | 63 }; |
62 private: | 64 private: |
63 SkTDArray<void*>& tile(int x, int y); | 65 SkTDArray<void*>& tile(int x, int y); |
64 | 66 |
65 int fXTileCount, fYTileCount, fTileCount; | 67 int fXTileCount, fYTileCount, fTileCount; |
66 SkTileGridPicture::TileGridInfo fInfo; | 68 SkTileGridPicture::TileGridInfo fInfo; |
67 SkTDArray<void*>* fTileData; | 69 SkTDArray<void*>* fTileData; |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 tileIndices[tile] = SkTileGrid::kTileFinished; | 113 tileIndices[tile] = SkTileGrid::kTileFinished; |
112 } | 114 } |
113 } | 115 } |
114 } | 116 } |
115 return minVal; | 117 return minVal; |
116 } | 118 } |
117 return NULL; | 119 return NULL; |
118 } | 120 } |
119 | 121 |
120 #endif | 122 #endif |
OLD | NEW |