OLD | NEW |
1 // Copyright 2010 The Chromium Authors. All rights reserved. | 1 // Copyright 2010 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CC_BASE_TILING_DATA_H_ | 5 #ifndef CC_BASE_TILING_DATA_H_ |
6 #define CC_BASE_TILING_DATA_H_ | 6 #define CC_BASE_TILING_DATA_H_ |
7 | 7 |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 int ignore_left_; | 125 int ignore_left_; |
126 int ignore_top_; | 126 int ignore_top_; |
127 int ignore_right_; | 127 int ignore_right_; |
128 int ignore_bottom_; | 128 int ignore_bottom_; |
129 }; | 129 }; |
130 | 130 |
131 // Iterate through all indices whose bounds (not including borders) intersect | 131 // Iterate through all indices whose bounds (not including borders) intersect |
132 // with |consider| but which also do not intersect with |ignore|. | 132 // with |consider| but which also do not intersect with |ignore|. |
133 class CC_EXPORT DifferenceIterator : public BaseDifferenceIterator { | 133 class CC_EXPORT DifferenceIterator : public BaseDifferenceIterator { |
134 public: | 134 public: |
| 135 DifferenceIterator(); |
135 DifferenceIterator(const TilingData* tiling_data, | 136 DifferenceIterator(const TilingData* tiling_data, |
136 const gfx::Rect& consider_rect, | 137 const gfx::Rect& consider_rect, |
137 const gfx::Rect& ignore_rect); | 138 const gfx::Rect& ignore_rect); |
138 DifferenceIterator& operator++(); | 139 DifferenceIterator& operator++(); |
139 }; | 140 }; |
140 | 141 |
141 // Iterate through all indices whose bounds + border intersect with | 142 // Iterate through all indices whose bounds + border intersect with |
142 // |consider| but which also do not intersect with |ignore|. The iterator | 143 // |consider| but which also do not intersect with |ignore|. The iterator |
143 // order is a counterclockwise spiral around the given center. | 144 // order is a counterclockwise spiral around the given center. |
144 class CC_EXPORT SpiralDifferenceIterator : public BaseDifferenceIterator { | 145 class CC_EXPORT SpiralDifferenceIterator : public BaseDifferenceIterator { |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
236 int border_texels_; | 237 int border_texels_; |
237 | 238 |
238 // These are computed values. | 239 // These are computed values. |
239 int num_tiles_x_; | 240 int num_tiles_x_; |
240 int num_tiles_y_; | 241 int num_tiles_y_; |
241 }; | 242 }; |
242 | 243 |
243 } // namespace cc | 244 } // namespace cc |
244 | 245 |
245 #endif // CC_BASE_TILING_DATA_H_ | 246 #endif // CC_BASE_TILING_DATA_H_ |
OLD | NEW |