| 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 11 matching lines...) Expand all Loading... |
| 22 | 22 |
| 23 class PictureLayerTiling; | 23 class PictureLayerTiling; |
| 24 | 24 |
| 25 class CC_EXPORT PictureLayerTilingClient { | 25 class CC_EXPORT PictureLayerTilingClient { |
| 26 public: | 26 public: |
| 27 // Create a tile at the given content_rect (in the contents scale of the | 27 // Create a tile at the given content_rect (in the contents scale of the |
| 28 // tiling) This might return null if the client cannot create such a tile. | 28 // tiling) This might return null if the client cannot create such a tile. |
| 29 virtual scoped_refptr<Tile> CreateTile( | 29 virtual scoped_refptr<Tile> CreateTile( |
| 30 PictureLayerTiling* tiling, | 30 PictureLayerTiling* tiling, |
| 31 gfx::Rect content_rect) = 0; | 31 gfx::Rect content_rect) = 0; |
| 32 virtual void DestroyTile(Tile* tile) = 0; | |
| 33 virtual void UpdatePile(Tile* tile) = 0; | 32 virtual void UpdatePile(Tile* tile) = 0; |
| 34 virtual gfx::Size CalculateTileSize( | 33 virtual gfx::Size CalculateTileSize( |
| 35 gfx::Size content_bounds) const = 0; | 34 gfx::Size content_bounds) const = 0; |
| 36 virtual const Region* GetInvalidation() = 0; | 35 virtual const Region* GetInvalidation() = 0; |
| 37 virtual const PictureLayerTiling* GetTwinTiling( | 36 virtual const PictureLayerTiling* GetTwinTiling( |
| 38 const PictureLayerTiling* tiling) = 0; | 37 const PictureLayerTiling* tiling) = 0; |
| 39 | 38 |
| 40 protected: | 39 protected: |
| 41 virtual ~PictureLayerTilingClient() {} | 40 virtual ~PictureLayerTilingClient() {} |
| 42 }; | 41 }; |
| (...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 193 | 192 |
| 194 friend class CoverageIterator; | 193 friend class CoverageIterator; |
| 195 | 194 |
| 196 private: | 195 private: |
| 197 DISALLOW_ASSIGN(PictureLayerTiling); | 196 DISALLOW_ASSIGN(PictureLayerTiling); |
| 198 }; | 197 }; |
| 199 | 198 |
| 200 } // namespace cc | 199 } // namespace cc |
| 201 | 200 |
| 202 #endif // CC_RESOURCES_PICTURE_LAYER_TILING_H_ | 201 #endif // CC_RESOURCES_PICTURE_LAYER_TILING_H_ |
| OLD | NEW |