| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 337 // See swap_promise.h for how to use SwapPromise. | 337 // See swap_promise.h for how to use SwapPromise. |
| 338 void QueueSwapPromise(scoped_ptr<SwapPromise> swap_promise); | 338 void QueueSwapPromise(scoped_ptr<SwapPromise> swap_promise); |
| 339 | 339 |
| 340 void BreakSwapPromises(SwapPromise::DidNotSwapReason reason); | 340 void BreakSwapPromises(SwapPromise::DidNotSwapReason reason); |
| 341 | 341 |
| 342 size_t num_queued_swap_promises() const { return swap_promise_list_.size(); } | 342 size_t num_queued_swap_promises() const { return swap_promise_list_.size(); } |
| 343 | 343 |
| 344 void set_surface_id_namespace(uint32_t id_namespace); | 344 void set_surface_id_namespace(uint32_t id_namespace); |
| 345 SurfaceSequence CreateSurfaceSequence(); | 345 SurfaceSequence CreateSurfaceSequence(); |
| 346 | 346 |
| 347 void SetChildrenNeedBeginFrames(bool children_need_begin_frames) const; | |
| 348 void SendBeginFramesToChildren(const BeginFrameArgs& args) const; | |
| 349 | |
| 350 void SetAuthoritativeVSyncInterval(const base::TimeDelta& interval); | 347 void SetAuthoritativeVSyncInterval(const base::TimeDelta& interval); |
| 351 | 348 |
| 352 PropertyTrees* property_trees() { return &property_trees_; } | 349 PropertyTrees* property_trees() { return &property_trees_; } |
| 353 bool needs_meta_info_recomputation() { | 350 bool needs_meta_info_recomputation() { |
| 354 return needs_meta_info_recomputation_; | 351 return needs_meta_info_recomputation_; |
| 355 } | 352 } |
| 356 | 353 |
| 357 void RecordFrameTimingEvents( | 354 void RecordFrameTimingEvents( |
| 358 scoped_ptr<FrameTimingTracker::CompositeTimingSet> composite_events, | 355 scoped_ptr<FrameTimingTracker::CompositeTimingSet> composite_events, |
| 359 scoped_ptr<FrameTimingTracker::MainFrameTimingSet> main_frame_events); | 356 scoped_ptr<FrameTimingTracker::MainFrameTimingSet> main_frame_events); |
| (...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 593 | 590 |
| 594 uint32_t surface_id_namespace_; | 591 uint32_t surface_id_namespace_; |
| 595 uint32_t next_surface_sequence_; | 592 uint32_t next_surface_sequence_; |
| 596 | 593 |
| 597 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); | 594 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); |
| 598 }; | 595 }; |
| 599 | 596 |
| 600 } // namespace cc | 597 } // namespace cc |
| 601 | 598 |
| 602 #endif // CC_TREES_LAYER_TREE_HOST_H_ | 599 #endif // CC_TREES_LAYER_TREE_HOST_H_ |
| OLD | NEW |