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 <utility> | 8 #include <utility> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
205 int bottom_; | 205 int bottom_; |
206 | 206 |
207 friend class PictureLayerTiling; | 207 friend class PictureLayerTiling; |
208 }; | 208 }; |
209 | 209 |
210 void Reset(); | 210 void Reset(); |
211 | 211 |
212 void UpdateTilePriorities( | 212 void UpdateTilePriorities( |
213 WhichTree tree, | 213 WhichTree tree, |
214 const gfx::Rect& visible_layer_rect, | 214 const gfx::Rect& visible_layer_rect, |
215 float layer_contents_scale, | 215 float ideal_contents_scale, |
216 double current_frame_time_in_seconds, | 216 double current_frame_time_in_seconds, |
217 const OcclusionTracker<LayerImpl>* occlusion_tracker, | 217 const OcclusionTracker<LayerImpl>* occlusion_tracker, |
218 const LayerImpl* render_target, | 218 const LayerImpl* render_target, |
219 const gfx::Transform& draw_transform); | 219 const gfx::Transform& draw_transform); |
220 | 220 |
221 // Copies the src_tree priority into the dst_tree priority for all tiles. | 221 // Copies the src_tree priority into the dst_tree priority for all tiles. |
222 // The src_tree priority is reset to the lowest priority possible. This | 222 // The src_tree priority is reset to the lowest priority possible. This |
223 // also updates the pile on each tile to be the current client's pile. | 223 // also updates the pile on each tile to be the current client's pile. |
224 void DidBecomeActive(); | 224 void DidBecomeActive(); |
225 | 225 |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
310 | 310 |
311 private: | 311 private: |
312 DISALLOW_ASSIGN(PictureLayerTiling); | 312 DISALLOW_ASSIGN(PictureLayerTiling); |
313 | 313 |
314 RectExpansionCache expansion_cache_; | 314 RectExpansionCache expansion_cache_; |
315 }; | 315 }; |
316 | 316 |
317 } // namespace cc | 317 } // namespace cc |
318 | 318 |
319 #endif // CC_RESOURCES_PICTURE_LAYER_TILING_H_ | 319 #endif // CC_RESOURCES_PICTURE_LAYER_TILING_H_ |
OLD | NEW |