| 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 // tiles can not be shared between pending and active trees. | 43 // tiles can not be shared between pending and active trees. |
| 44 virtual const Region* GetPendingInvalidation() = 0; | 44 virtual const Region* GetPendingInvalidation() = 0; |
| 45 virtual const PictureLayerTiling* GetPendingOrActiveTwinTiling( | 45 virtual const PictureLayerTiling* GetPendingOrActiveTwinTiling( |
| 46 const PictureLayerTiling* tiling) const = 0; | 46 const PictureLayerTiling* tiling) const = 0; |
| 47 virtual PictureLayerTiling* GetRecycledTwinTiling( | 47 virtual PictureLayerTiling* GetRecycledTwinTiling( |
| 48 const PictureLayerTiling* tiling) = 0; | 48 const PictureLayerTiling* tiling) = 0; |
| 49 virtual TilePriority::PriorityBin GetMaxTilePriorityBin() const = 0; | 49 virtual TilePriority::PriorityBin GetMaxTilePriorityBin() const = 0; |
| 50 virtual WhichTree GetTree() const = 0; | 50 virtual WhichTree GetTree() const = 0; |
| 51 virtual bool RequiresHighResToDraw() const = 0; | 51 virtual bool RequiresHighResToDraw() const = 0; |
| 52 | 52 |
| 53 // Callback to notify the client that the live rect (set of tiles) changed for | |
| 54 // a tiling. | |
| 55 virtual void TilingLiveRectChanged() = 0; | |
| 56 | |
| 57 protected: | 53 protected: |
| 58 virtual ~PictureLayerTilingClient() {} | 54 virtual ~PictureLayerTilingClient() {} |
| 59 }; | 55 }; |
| 60 | 56 |
| 61 class CC_EXPORT PictureLayerTiling { | 57 class CC_EXPORT PictureLayerTiling { |
| 62 public: | 58 public: |
| 63 static const int kBorderTexels = 1; | 59 static const int kBorderTexels = 1; |
| 64 | 60 |
| 65 ~PictureLayerTiling(); | 61 ~PictureLayerTiling(); |
| 66 | 62 |
| (...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 321 | 317 |
| 322 private: | 318 private: |
| 323 DISALLOW_ASSIGN(PictureLayerTiling); | 319 DISALLOW_ASSIGN(PictureLayerTiling); |
| 324 | 320 |
| 325 RectExpansionCache expansion_cache_; | 321 RectExpansionCache expansion_cache_; |
| 326 }; | 322 }; |
| 327 | 323 |
| 328 } // namespace cc | 324 } // namespace cc |
| 329 | 325 |
| 330 #endif // CC_RESOURCES_PICTURE_LAYER_TILING_H_ | 326 #endif // CC_RESOURCES_PICTURE_LAYER_TILING_H_ |
| OLD | NEW |