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_LAYERS_PICTURE_LAYER_IMPL_H_ | 5 #ifndef CC_LAYERS_PICTURE_LAYER_IMPL_H_ |
6 #define CC_LAYERS_PICTURE_LAYER_IMPL_H_ | 6 #define CC_LAYERS_PICTURE_LAYER_IMPL_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 // PictureLayerTilingClient overrides. | 119 // PictureLayerTilingClient overrides. |
120 scoped_refptr<Tile> CreateTile(PictureLayerTiling* tiling, | 120 scoped_refptr<Tile> CreateTile(PictureLayerTiling* tiling, |
121 const gfx::Rect& content_rect) override; | 121 const gfx::Rect& content_rect) override; |
122 RasterSource* GetRasterSource() override; | 122 RasterSource* GetRasterSource() override; |
123 gfx::Size CalculateTileSize(const gfx::Size& content_bounds) const override; | 123 gfx::Size CalculateTileSize(const gfx::Size& content_bounds) const override; |
124 const Region* GetPendingInvalidation() override; | 124 const Region* GetPendingInvalidation() override; |
125 const PictureLayerTiling* GetPendingOrActiveTwinTiling( | 125 const PictureLayerTiling* GetPendingOrActiveTwinTiling( |
126 const PictureLayerTiling* tiling) const override; | 126 const PictureLayerTiling* tiling) const override; |
127 PictureLayerTiling* GetRecycledTwinTiling( | 127 PictureLayerTiling* GetRecycledTwinTiling( |
128 const PictureLayerTiling* tiling) override; | 128 const PictureLayerTiling* tiling) override; |
| 129 TilePriority::PriorityBin GetMaxTilePriorityBin() const override; |
129 size_t GetMaxTilesForInterestArea() const override; | 130 size_t GetMaxTilesForInterestArea() const override; |
130 float GetSkewportTargetTimeInSeconds() const override; | 131 float GetSkewportTargetTimeInSeconds() const override; |
131 int GetSkewportExtrapolationLimitInContentPixels() const override; | 132 int GetSkewportExtrapolationLimitInContentPixels() const override; |
132 WhichTree GetTree() const override; | 133 WhichTree GetTree() const override; |
133 bool RequiresHighResToDraw() const override; | 134 bool RequiresHighResToDraw() const override; |
134 | 135 |
135 // PushPropertiesTo active tree => pending tree. | 136 // PushPropertiesTo active tree => pending tree. |
136 void SyncTiling(const PictureLayerTiling* tiling); | 137 void SyncTiling(const PictureLayerTiling* tiling); |
137 | 138 |
138 // Mask-related functions. | 139 // Mask-related functions. |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
223 // frame that has a valid viewport for prioritizing tiles. | 224 // frame that has a valid viewport for prioritizing tiles. |
224 gfx::Rect visible_rect_for_tile_priority_; | 225 gfx::Rect visible_rect_for_tile_priority_; |
225 | 226 |
226 friend class PictureLayer; | 227 friend class PictureLayer; |
227 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl); | 228 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl); |
228 }; | 229 }; |
229 | 230 |
230 } // namespace cc | 231 } // namespace cc |
231 | 232 |
232 #endif // CC_LAYERS_PICTURE_LAYER_IMPL_H_ | 233 #endif // CC_LAYERS_PICTURE_LAYER_IMPL_H_ |
OLD | NEW |