| 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 30 matching lines...) Expand all Loading... |
| 41 virtual RasterSource* GetRasterSource() = 0; | 41 virtual RasterSource* GetRasterSource() = 0; |
| 42 virtual gfx::Size CalculateTileSize( | 42 virtual gfx::Size CalculateTileSize( |
| 43 const gfx::Size& content_bounds) const = 0; | 43 const gfx::Size& content_bounds) const = 0; |
| 44 // This invalidation region defines the area (if any, it can by null) that | 44 // This invalidation region defines the area (if any, it can by null) that |
| 45 // tiles can not be shared between pending and active trees. | 45 // tiles can not be shared between pending and active trees. |
| 46 virtual const Region* GetPendingInvalidation() = 0; | 46 virtual const Region* GetPendingInvalidation() = 0; |
| 47 virtual const PictureLayerTiling* GetPendingOrActiveTwinTiling( | 47 virtual const PictureLayerTiling* GetPendingOrActiveTwinTiling( |
| 48 const PictureLayerTiling* tiling) const = 0; | 48 const PictureLayerTiling* tiling) const = 0; |
| 49 virtual PictureLayerTiling* GetRecycledTwinTiling( | 49 virtual PictureLayerTiling* GetRecycledTwinTiling( |
| 50 const PictureLayerTiling* tiling) = 0; | 50 const PictureLayerTiling* tiling) = 0; |
| 51 virtual TilePriority::PriorityBin GetMaxTilePriorityBin() const = 0; |
| 51 virtual size_t GetMaxTilesForInterestArea() const = 0; | 52 virtual size_t GetMaxTilesForInterestArea() const = 0; |
| 52 virtual float GetSkewportTargetTimeInSeconds() const = 0; | 53 virtual float GetSkewportTargetTimeInSeconds() const = 0; |
| 53 virtual int GetSkewportExtrapolationLimitInContentPixels() const = 0; | 54 virtual int GetSkewportExtrapolationLimitInContentPixels() const = 0; |
| 54 virtual WhichTree GetTree() const = 0; | 55 virtual WhichTree GetTree() const = 0; |
| 55 virtual bool RequiresHighResToDraw() const = 0; | 56 virtual bool RequiresHighResToDraw() const = 0; |
| 56 | 57 |
| 57 protected: | 58 protected: |
| 58 virtual ~PictureLayerTilingClient() {} | 59 virtual ~PictureLayerTilingClient() {} |
| 59 }; | 60 }; |
| 60 | 61 |
| (...skipping 318 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 |