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 <set> | 8 #include <set> |
9 #include <utility> | 9 #include <utility> |
10 #include <vector> | 10 #include <vector> |
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
230 int top_; | 230 int top_; |
231 int right_; | 231 int right_; |
232 int bottom_; | 232 int bottom_; |
233 | 233 |
234 friend class PictureLayerTiling; | 234 friend class PictureLayerTiling; |
235 }; | 235 }; |
236 | 236 |
237 void Reset(); | 237 void Reset(); |
238 | 238 |
239 void UpdateTilePriorities(WhichTree tree, | 239 void UpdateTilePriorities(WhichTree tree, |
240 const gfx::Rect& visible_layer_rect, | 240 const gfx::Rect& viewport_in_layer_space, |
241 float ideal_contents_scale, | 241 float ideal_contents_scale, |
242 double current_frame_time_in_seconds, | 242 double current_frame_time_in_seconds, |
243 const Occlusion& occlusion_in_layer_space); | 243 const Occlusion& occlusion_in_layer_space); |
244 | 244 |
245 // Copies the src_tree priority into the dst_tree priority for all tiles. | 245 // Copies the src_tree priority into the dst_tree priority for all tiles. |
246 // The src_tree priority is reset to the lowest priority possible. This | 246 // The src_tree priority is reset to the lowest priority possible. This |
247 // also updates the pile on each tile to be the current client's pile. | 247 // also updates the pile on each tile to be the current client's pile. |
248 void DidBecomeActive(); | 248 void DidBecomeActive(); |
249 | 249 |
250 // Resets the active priority for all tiles in a tiling, when an active | 250 // Resets the active priority for all tiles in a tiling, when an active |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
357 | 357 |
358 private: | 358 private: |
359 DISALLOW_ASSIGN(PictureLayerTiling); | 359 DISALLOW_ASSIGN(PictureLayerTiling); |
360 | 360 |
361 RectExpansionCache expansion_cache_; | 361 RectExpansionCache expansion_cache_; |
362 }; | 362 }; |
363 | 363 |
364 } // namespace cc | 364 } // namespace cc |
365 | 365 |
366 #endif // CC_RESOURCES_PICTURE_LAYER_TILING_H_ | 366 #endif // CC_RESOURCES_PICTURE_LAYER_TILING_H_ |
OLD | NEW |