Chromium Code Reviews| 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 15 matching lines...) Expand all Loading... | |
| 26 } | 26 } |
| 27 } | 27 } |
| 28 | 28 |
| 29 namespace cc { | 29 namespace cc { |
| 30 | 30 |
| 31 class PictureLayerTiling; | 31 class PictureLayerTiling; |
| 32 class RasterSource; | 32 class RasterSource; |
| 33 | 33 |
| 34 class CC_EXPORT PictureLayerTilingClient { | 34 class CC_EXPORT PictureLayerTilingClient { |
| 35 public: | 35 public: |
| 36 // Callback to notify the client that the PictureLayerTilingSet changed (ie. a | |
| 37 // tiling was added or removed). | |
|
vmpstr
2015/01/23 20:57:58
From the patch you have, this doesn't include any
danakj
2015/01/23 21:11:36
I don't think so.. live rect changes would come wi
| |
| 38 virtual void TilingSetChanged() = 0; | |
| 39 | |
| 36 // Create a tile at the given content_rect (in the contents scale of the | 40 // Create a tile at the given content_rect (in the contents scale of the |
| 37 // tiling) This might return null if the client cannot create such a tile. | 41 // tiling) This might return null if the client cannot create such a tile. |
| 38 virtual scoped_refptr<Tile> CreateTile(float contents_scale, | 42 virtual scoped_refptr<Tile> CreateTile(float contents_scale, |
| 39 const gfx::Rect& content_rect) = 0; | 43 const gfx::Rect& content_rect) = 0; |
| 40 virtual gfx::Size CalculateTileSize( | 44 virtual gfx::Size CalculateTileSize( |
| 41 const gfx::Size& content_bounds) const = 0; | 45 const gfx::Size& content_bounds) const = 0; |
| 42 // This invalidation region defines the area (if any, it can by null) that | 46 // This invalidation region defines the area (if any, it can by null) that |
| 43 // tiles can not be shared between pending and active trees. | 47 // tiles can not be shared between pending and active trees. |
| 44 virtual const Region* GetPendingInvalidation() = 0; | 48 virtual const Region* GetPendingInvalidation() = 0; |
| 45 virtual const PictureLayerTiling* GetPendingOrActiveTwinTiling( | 49 virtual const PictureLayerTiling* GetPendingOrActiveTwinTiling( |
| (...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 317 | 321 |
| 318 private: | 322 private: |
| 319 DISALLOW_ASSIGN(PictureLayerTiling); | 323 DISALLOW_ASSIGN(PictureLayerTiling); |
| 320 | 324 |
| 321 RectExpansionCache expansion_cache_; | 325 RectExpansionCache expansion_cache_; |
| 322 }; | 326 }; |
| 323 | 327 |
| 324 } // namespace cc | 328 } // namespace cc |
| 325 | 329 |
| 326 #endif // CC_RESOURCES_PICTURE_LAYER_TILING_H_ | 330 #endif // CC_RESOURCES_PICTURE_LAYER_TILING_H_ |
| OLD | NEW |