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