| 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; |
| 32 virtual void UpdatePile(Tile* tile) = 0; | 33 virtual void UpdatePile(Tile* tile) = 0; |
| 33 virtual gfx::Size CalculateTileSize( | 34 virtual gfx::Size CalculateTileSize( |
| 34 gfx::Size content_bounds) const = 0; | 35 gfx::Size content_bounds) const = 0; |
| 35 virtual const Region* GetInvalidation() = 0; | 36 virtual const Region* GetInvalidation() = 0; |
| 36 virtual const PictureLayerTiling* GetTwinTiling( | 37 virtual const PictureLayerTiling* GetTwinTiling( |
| 37 const PictureLayerTiling* tiling) = 0; | 38 const PictureLayerTiling* tiling) = 0; |
| 38 | 39 |
| 39 protected: | 40 protected: |
| 40 virtual ~PictureLayerTilingClient() {} | 41 virtual ~PictureLayerTilingClient() {} |
| 41 }; | 42 }; |
| (...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 184 | 185 |
| 185 friend class CoverageIterator; | 186 friend class CoverageIterator; |
| 186 | 187 |
| 187 private: | 188 private: |
| 188 DISALLOW_ASSIGN(PictureLayerTiling); | 189 DISALLOW_ASSIGN(PictureLayerTiling); |
| 189 }; | 190 }; |
| 190 | 191 |
| 191 } // namespace cc | 192 } // namespace cc |
| 192 | 193 |
| 193 #endif // CC_RESOURCES_PICTURE_LAYER_TILING_H_ | 194 #endif // CC_RESOURCES_PICTURE_LAYER_TILING_H_ |
| OLD | NEW |