OLD | NEW |
1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 2011 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_TREES_LAYER_TREE_HOST_H_ | 5 #ifndef CC_TREES_LAYER_TREE_HOST_H_ |
6 #define CC_TREES_LAYER_TREE_HOST_H_ | 6 #define CC_TREES_LAYER_TREE_HOST_H_ |
7 | 7 |
8 #include <limits> | 8 #include <limits> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
304 void RemoveSwapPromiseMonitor(SwapPromiseMonitor* monitor); | 304 void RemoveSwapPromiseMonitor(SwapPromiseMonitor* monitor); |
305 | 305 |
306 // Call this function when you expect there to be a swap buffer. | 306 // Call this function when you expect there to be a swap buffer. |
307 // See swap_promise.h for how to use SwapPromise. | 307 // See swap_promise.h for how to use SwapPromise. |
308 void QueueSwapPromise(scoped_ptr<SwapPromise> swap_promise); | 308 void QueueSwapPromise(scoped_ptr<SwapPromise> swap_promise); |
309 | 309 |
310 void BreakSwapPromises(SwapPromise::DidNotSwapReason reason); | 310 void BreakSwapPromises(SwapPromise::DidNotSwapReason reason); |
311 | 311 |
312 size_t num_queued_swap_promises() const { return swap_promise_list_.size(); } | 312 size_t num_queued_swap_promises() const { return swap_promise_list_.size(); } |
313 | 313 |
| 314 void TraceCommit(); |
| 315 |
314 void set_surface_id_namespace(uint32_t id_namespace); | 316 void set_surface_id_namespace(uint32_t id_namespace); |
315 SurfaceSequence CreateSurfaceSequence(); | 317 SurfaceSequence CreateSurfaceSequence(); |
316 | 318 |
317 void SetChildrenNeedBeginFrames(bool children_need_begin_frames) const; | 319 void SetChildrenNeedBeginFrames(bool children_need_begin_frames) const; |
318 void SendBeginFramesToChildren(const BeginFrameArgs& args) const; | 320 void SendBeginFramesToChildren(const BeginFrameArgs& args) const; |
319 | 321 |
320 void SetAuthoritativeVSyncInterval(const base::TimeDelta& interval); | 322 void SetAuthoritativeVSyncInterval(const base::TimeDelta& interval); |
321 | 323 |
322 PropertyTrees* property_trees() { return &property_trees_; } | 324 PropertyTrees* property_trees() { return &property_trees_; } |
323 bool needs_meta_info_recomputation() { | 325 bool needs_meta_info_recomputation() { |
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
489 | 491 |
490 uint32_t surface_id_namespace_; | 492 uint32_t surface_id_namespace_; |
491 uint32_t next_surface_sequence_; | 493 uint32_t next_surface_sequence_; |
492 | 494 |
493 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); | 495 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); |
494 }; | 496 }; |
495 | 497 |
496 } // namespace cc | 498 } // namespace cc |
497 | 499 |
498 #endif // CC_TREES_LAYER_TREE_HOST_H_ | 500 #endif // CC_TREES_LAYER_TREE_HOST_H_ |
OLD | NEW |