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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 */ | 56 */ |
57 virtual void search(const SkIRect& query, SkTDArray<void*>* results) SK_OVER
RIDE; | 57 virtual void search(const SkIRect& query, SkTDArray<void*>* results) SK_OVER
RIDE; |
58 | 58 |
59 virtual void clear() SK_OVERRIDE; | 59 virtual void clear() SK_OVERRIDE; |
60 | 60 |
61 /** | 61 /** |
62 * Gets the number of insertions | 62 * Gets the number of insertions |
63 */ | 63 */ |
64 virtual int getCount() const SK_OVERRIDE; | 64 virtual int getCount() const SK_OVERRIDE; |
65 | 65 |
| 66 virtual int getDepth() const SK_OVERRIDE { return -1; } |
| 67 |
66 virtual void rewindInserts() SK_OVERRIDE; | 68 virtual void rewindInserts() SK_OVERRIDE; |
67 | 69 |
68 // Used by search() and in SkTileGridHelper implementations | 70 // Used by search() and in SkTileGridHelper implementations |
69 enum { | 71 enum { |
70 kTileFinished = -1, | 72 kTileFinished = -1, |
71 }; | 73 }; |
72 | 74 |
73 int tileCount(int x, int y); // For testing only. | 75 int tileCount(int x, int y); // For testing only. |
74 | 76 |
75 private: | 77 private: |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 tileIndices[tile] = SkTileGrid::kTileFinished; | 133 tileIndices[tile] = SkTileGrid::kTileFinished; |
132 } | 134 } |
133 } | 135 } |
134 } | 136 } |
135 return minVal; | 137 return minVal; |
136 } | 138 } |
137 return NULL; | 139 return NULL; |
138 } | 140 } |
139 | 141 |
140 #endif | 142 #endif |
OLD | NEW |