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 <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 // PictureLayerTilingClient overrides. | 117 // PictureLayerTilingClient overrides. |
118 virtual scoped_refptr<Tile> CreateTile( | 118 virtual scoped_refptr<Tile> CreateTile( |
119 PictureLayerTiling* tiling, | 119 PictureLayerTiling* tiling, |
120 const gfx::Rect& content_rect) OVERRIDE; | 120 const gfx::Rect& content_rect) OVERRIDE; |
121 virtual PicturePileImpl* GetPile() OVERRIDE; | 121 virtual PicturePileImpl* GetPile() OVERRIDE; |
122 virtual gfx::Size CalculateTileSize( | 122 virtual gfx::Size CalculateTileSize( |
123 const gfx::Size& content_bounds) const OVERRIDE; | 123 const gfx::Size& content_bounds) const OVERRIDE; |
124 virtual const Region* GetInvalidation() OVERRIDE; | 124 virtual const Region* GetInvalidation() OVERRIDE; |
125 virtual const PictureLayerTiling* GetTwinTiling( | 125 virtual const PictureLayerTiling* GetTwinTiling( |
126 const PictureLayerTiling* tiling) const OVERRIDE; | 126 const PictureLayerTiling* tiling) const OVERRIDE; |
| 127 virtual PictureLayerTiling* GetRecycledTwinTiling( |
| 128 const PictureLayerTiling* tiling) const OVERRIDE; |
127 virtual size_t GetMaxTilesForInterestArea() const OVERRIDE; | 129 virtual size_t GetMaxTilesForInterestArea() const OVERRIDE; |
128 virtual float GetSkewportTargetTimeInSeconds() const OVERRIDE; | 130 virtual float GetSkewportTargetTimeInSeconds() const OVERRIDE; |
129 virtual int GetSkewportExtrapolationLimitInContentPixels() const OVERRIDE; | 131 virtual int GetSkewportExtrapolationLimitInContentPixels() const OVERRIDE; |
130 virtual WhichTree GetTree() const OVERRIDE; | 132 virtual WhichTree GetTree() const OVERRIDE; |
131 | 133 |
132 // PushPropertiesTo active tree => pending tree. | 134 // PushPropertiesTo active tree => pending tree. |
133 void SyncTiling(const PictureLayerTiling* tiling); | 135 void SyncTiling(const PictureLayerTiling* tiling); |
134 | 136 |
135 // Mask-related functions | 137 // Mask-related functions |
136 void SetIsMask(bool is_mask); | 138 void SetIsMask(bool is_mask); |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
187 bool ShouldAdjustRasterScaleDuringScaleAnimations() const; | 189 bool ShouldAdjustRasterScaleDuringScaleAnimations() const; |
188 | 190 |
189 virtual void GetDebugBorderProperties( | 191 virtual void GetDebugBorderProperties( |
190 SkColor* color, float* width) const OVERRIDE; | 192 SkColor* color, float* width) const OVERRIDE; |
191 virtual void AsValueInto(base::debug::TracedValue* dict) const OVERRIDE; | 193 virtual void AsValueInto(base::debug::TracedValue* dict) const OVERRIDE; |
192 | 194 |
193 virtual void UpdateIdealScales(); | 195 virtual void UpdateIdealScales(); |
194 float MaximumTilingContentsScale() const; | 196 float MaximumTilingContentsScale() const; |
195 | 197 |
196 PictureLayerImpl* twin_layer_; | 198 PictureLayerImpl* twin_layer_; |
| 199 PictureLayerImpl* recycled_twin_layer_; |
197 | 200 |
198 scoped_ptr<PictureLayerTilingSet> tilings_; | 201 scoped_ptr<PictureLayerTilingSet> tilings_; |
199 scoped_refptr<PicturePileImpl> pile_; | 202 scoped_refptr<PicturePileImpl> pile_; |
200 Region invalidation_; | 203 Region invalidation_; |
201 | 204 |
202 bool is_mask_; | 205 bool is_mask_; |
203 | 206 |
204 float ideal_page_scale_; | 207 float ideal_page_scale_; |
205 float ideal_device_scale_; | 208 float ideal_device_scale_; |
206 float ideal_source_scale_; | 209 float ideal_source_scale_; |
(...skipping 18 matching lines...) Expand all Loading... |
225 gfx::Rect viewport_rect_for_tile_priority_; | 228 gfx::Rect viewport_rect_for_tile_priority_; |
226 gfx::Transform screen_space_transform_for_tile_priority_; | 229 gfx::Transform screen_space_transform_for_tile_priority_; |
227 | 230 |
228 friend class PictureLayer; | 231 friend class PictureLayer; |
229 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl); | 232 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl); |
230 }; | 233 }; |
231 | 234 |
232 } // namespace cc | 235 } // namespace cc |
233 | 236 |
234 #endif // CC_LAYERS_PICTURE_LAYER_IMPL_H_ | 237 #endif // CC_LAYERS_PICTURE_LAYER_IMPL_H_ |
OLD | NEW |