OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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_RESOURCES_PICTURE_LAYER_TILING_H_ | 5 #ifndef CC_RESOURCES_PICTURE_LAYER_TILING_H_ |
6 #define CC_RESOURCES_PICTURE_LAYER_TILING_H_ | 6 #define CC_RESOURCES_PICTURE_LAYER_TILING_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <utility> | 9 #include <utility> |
10 #include <vector> | 10 #include <vector> |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 } | 154 } |
155 const gfx::Rect& current_skewport_rect() const { | 155 const gfx::Rect& current_skewport_rect() const { |
156 return current_skewport_rect_; | 156 return current_skewport_rect_; |
157 } | 157 } |
158 const gfx::Rect& current_soon_border_rect() const { | 158 const gfx::Rect& current_soon_border_rect() const { |
159 return current_soon_border_rect_; | 159 return current_soon_border_rect_; |
160 } | 160 } |
161 const gfx::Rect& current_eventually_rect() const { | 161 const gfx::Rect& current_eventually_rect() const { |
162 return current_eventually_rect_; | 162 return current_eventually_rect_; |
163 } | 163 } |
| 164 void VerifyAllTilesHaveCurrentRasterSource() const; |
164 | 165 |
165 // Iterate over all tiles to fill content_rect. Even if tiles are invalid | 166 // Iterate over all tiles to fill content_rect. Even if tiles are invalid |
166 // (i.e. no valid resource) this tiling should still iterate over them. | 167 // (i.e. no valid resource) this tiling should still iterate over them. |
167 // The union of all geometry_rect calls for each element iterated over should | 168 // The union of all geometry_rect calls for each element iterated over should |
168 // exactly equal content_rect and no two geometry_rects should intersect. | 169 // exactly equal content_rect and no two geometry_rects should intersect. |
169 class CC_EXPORT CoverageIterator { | 170 class CC_EXPORT CoverageIterator { |
170 public: | 171 public: |
171 CoverageIterator(); | 172 CoverageIterator(); |
172 CoverageIterator(const PictureLayerTiling* tiling, | 173 CoverageIterator(const PictureLayerTiling* tiling, |
173 float dest_scale, | 174 float dest_scale, |
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
340 | 341 |
341 private: | 342 private: |
342 DISALLOW_ASSIGN(PictureLayerTiling); | 343 DISALLOW_ASSIGN(PictureLayerTiling); |
343 | 344 |
344 RectExpansionCache expansion_cache_; | 345 RectExpansionCache expansion_cache_; |
345 }; | 346 }; |
346 | 347 |
347 } // namespace cc | 348 } // namespace cc |
348 | 349 |
349 #endif // CC_RESOURCES_PICTURE_LAYER_TILING_H_ | 350 #endif // CC_RESOURCES_PICTURE_LAYER_TILING_H_ |
OLD | NEW |