| 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 <utility> | 8 #include <utility> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 const gfx::Rect& content_rect) = 0; | 34 const gfx::Rect& content_rect) = 0; |
| 35 virtual PicturePileImpl* GetPile() = 0; | 35 virtual PicturePileImpl* GetPile() = 0; |
| 36 virtual gfx::Size CalculateTileSize( | 36 virtual gfx::Size CalculateTileSize( |
| 37 const gfx::Size& content_bounds) const = 0; | 37 const gfx::Size& content_bounds) const = 0; |
| 38 virtual const Region* GetInvalidation() = 0; | 38 virtual const Region* GetInvalidation() = 0; |
| 39 virtual const PictureLayerTiling* GetTwinTiling( | 39 virtual const PictureLayerTiling* GetTwinTiling( |
| 40 const PictureLayerTiling* tiling) const = 0; | 40 const PictureLayerTiling* tiling) const = 0; |
| 41 virtual size_t GetMaxTilesForInterestArea() const = 0; | 41 virtual size_t GetMaxTilesForInterestArea() const = 0; |
| 42 virtual float GetSkewportTargetTimeInSeconds() const = 0; | 42 virtual float GetSkewportTargetTimeInSeconds() const = 0; |
| 43 virtual int GetSkewportExtrapolationLimitInContentPixels() const = 0; | 43 virtual int GetSkewportExtrapolationLimitInContentPixels() const = 0; |
| 44 virtual WhichTree GetTree() const = 0; |
| 44 | 45 |
| 45 protected: | 46 protected: |
| 46 virtual ~PictureLayerTilingClient() {} | 47 virtual ~PictureLayerTilingClient() {} |
| 47 }; | 48 }; |
| 48 | 49 |
| 49 class CC_EXPORT PictureLayerTiling { | 50 class CC_EXPORT PictureLayerTiling { |
| 50 public: | 51 public: |
| 51 class CC_EXPORT TilingRasterTileIterator { | 52 class CC_EXPORT TilingRasterTileIterator { |
| 52 public: | 53 public: |
| 53 TilingRasterTileIterator(); | 54 TilingRasterTileIterator(); |
| (...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 321 | 322 |
| 322 private: | 323 private: |
| 323 DISALLOW_ASSIGN(PictureLayerTiling); | 324 DISALLOW_ASSIGN(PictureLayerTiling); |
| 324 | 325 |
| 325 RectExpansionCache expansion_cache_; | 326 RectExpansionCache expansion_cache_; |
| 326 }; | 327 }; |
| 327 | 328 |
| 328 } // namespace cc | 329 } // namespace cc |
| 329 | 330 |
| 330 #endif // CC_RESOURCES_PICTURE_LAYER_TILING_H_ | 331 #endif // CC_RESOURCES_PICTURE_LAYER_TILING_H_ |
| OLD | NEW |