| 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 <set> | 8 #include <set> |
| 9 #include <utility> | 9 #include <utility> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 197 SimpleEnclosedRegion(viewport_in_layer_space), | 197 SimpleEnclosedRegion(viewport_in_layer_space), |
| 198 SimpleEnclosedRegion(viewport_in_layer_space)); | 198 SimpleEnclosedRegion(viewport_in_layer_space)); |
| 199 } | 199 } |
| 200 | 200 |
| 201 const gfx::Rect& GetCurrentVisibleRectForTesting() const { | 201 const gfx::Rect& GetCurrentVisibleRectForTesting() const { |
| 202 return current_visible_rect_; | 202 return current_visible_rect_; |
| 203 } | 203 } |
| 204 | 204 |
| 205 bool IsTileOccluded(const Tile* tile) const; | 205 bool IsTileOccluded(const Tile* tile) const; |
| 206 bool IsTileRequiredForActivation(const Tile* tile) const; | 206 bool IsTileRequiredForActivation(const Tile* tile) const; |
| 207 bool IsTileRequiredForDraw(const Tile* tile) const; |
| 207 | 208 |
| 208 // Iterate over all tiles to fill content_rect. Even if tiles are invalid | 209 // Iterate over all tiles to fill content_rect. Even if tiles are invalid |
| 209 // (i.e. no valid resource) this tiling should still iterate over them. | 210 // (i.e. no valid resource) this tiling should still iterate over them. |
| 210 // The union of all geometry_rect calls for each element iterated over should | 211 // The union of all geometry_rect calls for each element iterated over should |
| 211 // exactly equal content_rect and no two geometry_rects should intersect. | 212 // exactly equal content_rect and no two geometry_rects should intersect. |
| 212 class CC_EXPORT CoverageIterator { | 213 class CC_EXPORT CoverageIterator { |
| 213 public: | 214 public: |
| 214 CoverageIterator(); | 215 CoverageIterator(); |
| 215 CoverageIterator(const PictureLayerTiling* tiling, | 216 CoverageIterator(const PictureLayerTiling* tiling, |
| 216 float dest_scale, | 217 float dest_scale, |
| (...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 373 | 374 |
| 374 private: | 375 private: |
| 375 DISALLOW_ASSIGN(PictureLayerTiling); | 376 DISALLOW_ASSIGN(PictureLayerTiling); |
| 376 | 377 |
| 377 RectExpansionCache expansion_cache_; | 378 RectExpansionCache expansion_cache_; |
| 378 }; | 379 }; |
| 379 | 380 |
| 380 } // namespace cc | 381 } // namespace cc |
| 381 | 382 |
| 382 #endif // CC_RESOURCES_PICTURE_LAYER_TILING_H_ | 383 #endif // CC_RESOURCES_PICTURE_LAYER_TILING_H_ |
| OLD | NEW |