| 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 // This invalidation region defines the area (if any, it can by null) that | 48 // This invalidation region defines the area (if any, it can by null) that |
| 49 // tiles can not be shared between pending and active trees. | 49 // tiles can not be shared between pending and active trees. |
| 50 virtual const Region* GetPendingInvalidation() = 0; | 50 virtual const Region* GetPendingInvalidation() = 0; |
| 51 virtual const PictureLayerTiling* GetPendingOrActiveTwinTiling( | 51 virtual const PictureLayerTiling* GetPendingOrActiveTwinTiling( |
| 52 const PictureLayerTiling* tiling) const = 0; | 52 const PictureLayerTiling* tiling) const = 0; |
| 53 virtual PictureLayerTiling* GetRecycledTwinTiling( | 53 virtual PictureLayerTiling* GetRecycledTwinTiling( |
| 54 const PictureLayerTiling* tiling) = 0; | 54 const PictureLayerTiling* tiling) = 0; |
| 55 virtual TilePriority::PriorityBin GetMaxTilePriorityBin() const = 0; | 55 virtual TilePriority::PriorityBin GetMaxTilePriorityBin() const = 0; |
| 56 virtual WhichTree GetTree() const = 0; | 56 virtual WhichTree GetTree() const = 0; |
| 57 virtual bool RequiresHighResToDraw() const = 0; | 57 virtual bool RequiresHighResToDraw() const = 0; |
| 58 virtual bool HasValidTilePriorities() const = 0; |
| 58 | 59 |
| 59 protected: | 60 protected: |
| 60 virtual ~PictureLayerTilingClient() {} | 61 virtual ~PictureLayerTilingClient() {} |
| 61 }; | 62 }; |
| 62 | 63 |
| 63 class CC_EXPORT PictureLayerTiling { | 64 class CC_EXPORT PictureLayerTiling { |
| 64 public: | 65 public: |
| 65 static const int kBorderTexels = 1; | 66 static const int kBorderTexels = 1; |
| 66 | 67 |
| 67 ~PictureLayerTiling(); | 68 ~PictureLayerTiling(); |
| (...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 323 | 324 |
| 324 private: | 325 private: |
| 325 DISALLOW_ASSIGN(PictureLayerTiling); | 326 DISALLOW_ASSIGN(PictureLayerTiling); |
| 326 | 327 |
| 327 RectExpansionCache expansion_cache_; | 328 RectExpansionCache expansion_cache_; |
| 328 }; | 329 }; |
| 329 | 330 |
| 330 } // namespace cc | 331 } // namespace cc |
| 331 | 332 |
| 332 #endif // CC_RESOURCES_PICTURE_LAYER_TILING_H_ | 333 #endif // CC_RESOURCES_PICTURE_LAYER_TILING_H_ |
| OLD | NEW |