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 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
165 virtual void RecalculateRasterScales(); | 165 virtual void RecalculateRasterScales(); |
166 void CleanUpTilingsOnActiveLayer( | 166 void CleanUpTilingsOnActiveLayer( |
167 std::vector<PictureLayerTiling*> used_tilings); | 167 std::vector<PictureLayerTiling*> used_tilings); |
168 float MinimumContentsScale() const; | 168 float MinimumContentsScale() const; |
169 float SnappedContentsScale(float new_contents_scale); | 169 float SnappedContentsScale(float new_contents_scale); |
170 void ResetRasterScale(); | 170 void ResetRasterScale(); |
171 void MarkVisibleResourcesAsRequired() const; | 171 void MarkVisibleResourcesAsRequired() const; |
172 bool MarkVisibleTilesAsRequired( | 172 bool MarkVisibleTilesAsRequired( |
173 PictureLayerTiling* tiling, | 173 PictureLayerTiling* tiling, |
174 const PictureLayerTiling* optional_twin_tiling, | 174 const PictureLayerTiling* optional_twin_tiling, |
175 float contents_scale, | |
176 const gfx::Rect& rect, | 175 const gfx::Rect& rect, |
177 const Region& missing_region) const; | 176 const Region& missing_region) const; |
178 gfx::Rect GetViewportForTilePriorityInContentSpace() const; | 177 gfx::Rect GetViewportForTilePriorityInContentSpace() const; |
179 PictureLayerImpl* GetRecycledTwinLayer(); | 178 PictureLayerImpl* GetRecycledTwinLayer(); |
180 | 179 |
181 void DoPostCommitInitializationIfNeeded() { | 180 void DoPostCommitInitializationIfNeeded() { |
182 if (needs_post_commit_initialization_) | 181 if (needs_post_commit_initialization_) |
183 DoPostCommitInitialization(); | 182 DoPostCommitInitialization(); |
184 } | 183 } |
185 void DoPostCommitInitialization(); | 184 void DoPostCommitInitialization(); |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
229 gfx::Rect viewport_rect_for_tile_priority_; | 228 gfx::Rect viewport_rect_for_tile_priority_; |
230 gfx::Transform screen_space_transform_for_tile_priority_; | 229 gfx::Transform screen_space_transform_for_tile_priority_; |
231 | 230 |
232 friend class PictureLayer; | 231 friend class PictureLayer; |
233 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl); | 232 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl); |
234 }; | 233 }; |
235 | 234 |
236 } // namespace cc | 235 } // namespace cc |
237 | 236 |
238 #endif // CC_LAYERS_PICTURE_LAYER_IMPL_H_ | 237 #endif // CC_LAYERS_PICTURE_LAYER_IMPL_H_ |
OLD | NEW |