| 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(); | |
| 136 DifferenceIterator(const TilingData* tiling_data, | 135 DifferenceIterator(const TilingData* tiling_data, |
| 137 const gfx::Rect& consider_rect, | 136 const gfx::Rect& consider_rect, |
| 138 const gfx::Rect& ignore_rect); | 137 const gfx::Rect& ignore_rect); |
| 139 DifferenceIterator& operator++(); | 138 DifferenceIterator& operator++(); |
| 140 }; | 139 }; |
| 141 | 140 |
| 142 // Iterate through all indices whose bounds + border intersect with | 141 // Iterate through all indices whose bounds + border intersect with |
| 143 // |consider| but which also do not intersect with |ignore|. The iterator | 142 // |consider| but which also do not intersect with |ignore|. The iterator |
| 144 // order is a counterclockwise spiral around the given center. | 143 // order is a counterclockwise spiral around the given center. |
| 145 class CC_EXPORT SpiralDifferenceIterator : public BaseDifferenceIterator { | 144 class CC_EXPORT SpiralDifferenceIterator : public BaseDifferenceIterator { |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 237 int border_texels_; | 236 int border_texels_; |
| 238 | 237 |
| 239 // These are computed values. | 238 // These are computed values. |
| 240 int num_tiles_x_; | 239 int num_tiles_x_; |
| 241 int num_tiles_y_; | 240 int num_tiles_y_; |
| 242 }; | 241 }; |
| 243 | 242 |
| 244 } // namespace cc | 243 } // namespace cc |
| 245 | 244 |
| 246 #endif // CC_BASE_TILING_DATA_H_ | 245 #endif // CC_BASE_TILING_DATA_H_ |
| OLD | NEW |