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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 // PictureLayerTilingClient overrides. | 68 // PictureLayerTilingClient overrides. |
69 scoped_refptr<Tile> CreateTile(PictureLayerTiling* tiling, | 69 scoped_refptr<Tile> CreateTile(PictureLayerTiling* tiling, |
70 const gfx::Rect& content_rect) override; | 70 const gfx::Rect& content_rect) override; |
71 gfx::Size CalculateTileSize(const gfx::Size& content_bounds) const override; | 71 gfx::Size CalculateTileSize(const gfx::Size& content_bounds) const override; |
72 const Region* GetPendingInvalidation() override; | 72 const Region* GetPendingInvalidation() override; |
73 const PictureLayerTiling* GetPendingOrActiveTwinTiling( | 73 const PictureLayerTiling* GetPendingOrActiveTwinTiling( |
74 const PictureLayerTiling* tiling) const override; | 74 const PictureLayerTiling* tiling) const override; |
75 PictureLayerTiling* GetRecycledTwinTiling( | 75 PictureLayerTiling* GetRecycledTwinTiling( |
76 const PictureLayerTiling* tiling) override; | 76 const PictureLayerTiling* tiling) override; |
77 TilePriority::PriorityBin GetMaxTilePriorityBin() const override; | 77 TilePriority::PriorityBin GetMaxTilePriorityBin() const override; |
78 size_t GetMaxTilesForInterestArea() const override; | |
79 float GetSkewportTargetTimeInSeconds() const override; | |
80 int GetSkewportExtrapolationLimitInContentPixels() const override; | |
81 WhichTree GetTree() const override; | 78 WhichTree GetTree() const override; |
82 bool RequiresHighResToDraw() const override; | 79 bool RequiresHighResToDraw() const override; |
83 | 80 |
84 // PushPropertiesTo active tree => pending tree. | 81 // PushPropertiesTo active tree => pending tree. |
85 void SyncTiling(const PictureLayerTiling* tiling); | 82 void SyncTiling(const PictureLayerTiling* tiling); |
86 | 83 |
87 // Mask-related functions. | 84 // Mask-related functions. |
88 void GetContentsResourceId(ResourceProvider::ResourceId* resource_id, | 85 void GetContentsResourceId(ResourceProvider::ResourceId* resource_id, |
89 gfx::Size* resource_size) const override; | 86 gfx::Size* resource_size) const override; |
90 | 87 |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 TileRequirementCheck is_tile_required_callback) const; | 138 TileRequirementCheck is_tile_required_callback) const; |
142 | 139 |
143 bool ShouldAdjustRasterScaleDuringScaleAnimations() const; | 140 bool ShouldAdjustRasterScaleDuringScaleAnimations() const; |
144 | 141 |
145 void GetDebugBorderProperties(SkColor* color, float* width) const override; | 142 void GetDebugBorderProperties(SkColor* color, float* width) const override; |
146 void GetAllTilesForTracing(std::set<const Tile*>* tiles) const override; | 143 void GetAllTilesForTracing(std::set<const Tile*>* tiles) const override; |
147 void AsValueInto(base::debug::TracedValue* dict) const override; | 144 void AsValueInto(base::debug::TracedValue* dict) const override; |
148 | 145 |
149 virtual void UpdateIdealScales(); | 146 virtual void UpdateIdealScales(); |
150 float MaximumTilingContentsScale() const; | 147 float MaximumTilingContentsScale() const; |
| 148 scoped_ptr<PictureLayerTilingSet> CreatePictureLayerTilingSet(); |
151 | 149 |
152 PictureLayerImpl* twin_layer_; | 150 PictureLayerImpl* twin_layer_; |
153 | 151 |
154 scoped_ptr<PictureLayerTilingSet> tilings_; | 152 scoped_ptr<PictureLayerTilingSet> tilings_; |
155 scoped_refptr<RasterSource> raster_source_; | 153 scoped_refptr<RasterSource> raster_source_; |
156 Region invalidation_; | 154 Region invalidation_; |
157 | 155 |
158 float ideal_page_scale_; | 156 float ideal_page_scale_; |
159 float ideal_device_scale_; | 157 float ideal_device_scale_; |
160 float ideal_source_scale_; | 158 float ideal_source_scale_; |
(...skipping 22 matching lines...) Expand all Loading... |
183 // frame that has a valid viewport for prioritizing tiles. | 181 // frame that has a valid viewport for prioritizing tiles. |
184 gfx::Rect visible_rect_for_tile_priority_; | 182 gfx::Rect visible_rect_for_tile_priority_; |
185 | 183 |
186 friend class PictureLayer; | 184 friend class PictureLayer; |
187 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl); | 185 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl); |
188 }; | 186 }; |
189 | 187 |
190 } // namespace cc | 188 } // namespace cc |
191 | 189 |
192 #endif // CC_LAYERS_PICTURE_LAYER_IMPL_H_ | 190 #endif // CC_LAYERS_PICTURE_LAYER_IMPL_H_ |
OLD | NEW |