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 24 matching lines...) Expand all Loading... |
35 public: | 35 public: |
36 // Create a tile at the given content_rect (in the contents scale of the | 36 // 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. | 37 // tiling) This might return null if the client cannot create such a tile. |
38 virtual scoped_refptr<Tile> CreateTile( | 38 virtual scoped_refptr<Tile> CreateTile( |
39 PictureLayerTiling* tiling, | 39 PictureLayerTiling* tiling, |
40 const gfx::Rect& content_rect) = 0; | 40 const gfx::Rect& content_rect) = 0; |
41 virtual PicturePileImpl* GetPile() = 0; | 41 virtual PicturePileImpl* GetPile() = 0; |
42 virtual gfx::Size CalculateTileSize( | 42 virtual gfx::Size CalculateTileSize( |
43 const gfx::Size& content_bounds) const = 0; | 43 const gfx::Size& content_bounds) const = 0; |
44 virtual const Region* GetInvalidation() = 0; | 44 virtual const Region* GetInvalidation() = 0; |
45 virtual const PictureLayerTiling* GetTwinTiling( | 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 size_t GetMaxTilesForInterestArea() const = 0; | 49 virtual size_t GetMaxTilesForInterestArea() const = 0; |
50 virtual float GetSkewportTargetTimeInSeconds() const = 0; | 50 virtual float GetSkewportTargetTimeInSeconds() const = 0; |
51 virtual int GetSkewportExtrapolationLimitInContentPixels() const = 0; | 51 virtual int GetSkewportExtrapolationLimitInContentPixels() const = 0; |
52 virtual WhichTree GetTree() const = 0; | 52 virtual WhichTree GetTree() const = 0; |
53 virtual bool RequiresHighResToDraw() const = 0; | 53 virtual bool RequiresHighResToDraw() const = 0; |
54 | 54 |
55 protected: | 55 protected: |
(...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
377 | 377 |
378 private: | 378 private: |
379 DISALLOW_ASSIGN(PictureLayerTiling); | 379 DISALLOW_ASSIGN(PictureLayerTiling); |
380 | 380 |
381 RectExpansionCache expansion_cache_; | 381 RectExpansionCache expansion_cache_; |
382 }; | 382 }; |
383 | 383 |
384 } // namespace cc | 384 } // namespace cc |
385 | 385 |
386 #endif // CC_RESOURCES_PICTURE_LAYER_TILING_H_ | 386 #endif // CC_RESOURCES_PICTURE_LAYER_TILING_H_ |
OLD | NEW |