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 <list> | 9 #include <list> |
10 #include <set> | 10 #include <set> |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner); | 97 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner); |
98 virtual ~LayerTreeHost(); | 98 virtual ~LayerTreeHost(); |
99 | 99 |
100 void SetLayerTreeHostClientReady(); | 100 void SetLayerTreeHostClientReady(); |
101 | 101 |
102 // LayerTreeHost interface to Proxy. | 102 // LayerTreeHost interface to Proxy. |
103 void WillBeginMainFrame() { | 103 void WillBeginMainFrame() { |
104 client_->WillBeginMainFrame(source_frame_number_); | 104 client_->WillBeginMainFrame(source_frame_number_); |
105 } | 105 } |
106 void DidBeginMainFrame(); | 106 void DidBeginMainFrame(); |
107 void UpdateClientAnimations(base::TimeTicks monotonic_frame_begin_time); | 107 void BeginMainFrame(const BeginFrameArgs& args); |
108 void AnimateLayers(base::TimeTicks monotonic_frame_begin_time); | 108 void AnimateLayers(base::TimeTicks monotonic_frame_begin_time); |
109 void DidStopFlinging(); | 109 void DidStopFlinging(); |
110 void Layout(); | 110 void Layout(); |
111 void BeginCommitOnImplThread(LayerTreeHostImpl* host_impl); | 111 void BeginCommitOnImplThread(LayerTreeHostImpl* host_impl); |
112 void FinishCommitOnImplThread(LayerTreeHostImpl* host_impl); | 112 void FinishCommitOnImplThread(LayerTreeHostImpl* host_impl); |
113 void WillCommit(); | 113 void WillCommit(); |
114 void CommitComplete(); | 114 void CommitComplete(); |
115 scoped_ptr<OutputSurface> CreateOutputSurface(); | 115 scoped_ptr<OutputSurface> CreateOutputSurface(); |
116 virtual scoped_ptr<LayerTreeHostImpl> CreateLayerTreeHostImpl( | 116 virtual scoped_ptr<LayerTreeHostImpl> CreateLayerTreeHostImpl( |
117 LayerTreeHostImplClient* client); | 117 LayerTreeHostImplClient* client); |
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
354 int next_ui_resource_id_; | 354 int next_ui_resource_id_; |
355 | 355 |
356 typedef std::list<UIResourceRequest> UIResourceRequestQueue; | 356 typedef std::list<UIResourceRequest> UIResourceRequestQueue; |
357 UIResourceRequestQueue ui_resource_request_queue_; | 357 UIResourceRequestQueue ui_resource_request_queue_; |
358 | 358 |
359 void RecordGpuRasterizationHistogram(); | 359 void RecordGpuRasterizationHistogram(); |
360 void CalculateLCDTextMetricsCallback(Layer* layer); | 360 void CalculateLCDTextMetricsCallback(Layer* layer); |
361 | 361 |
362 void NotifySwapPromiseMonitorsOfSetNeedsCommit(); | 362 void NotifySwapPromiseMonitorsOfSetNeedsCommit(); |
363 | 363 |
364 bool animating_; | 364 bool inside_begin_main_frame_; |
365 bool needs_full_tree_sync_; | 365 bool needs_full_tree_sync_; |
366 | 366 |
367 base::CancelableClosure prepaint_callback_; | 367 base::CancelableClosure prepaint_callback_; |
368 | 368 |
369 LayerTreeHostClient* client_; | 369 LayerTreeHostClient* client_; |
370 scoped_ptr<Proxy> proxy_; | 370 scoped_ptr<Proxy> proxy_; |
371 | 371 |
372 int source_frame_number_; | 372 int source_frame_number_; |
373 scoped_ptr<RenderingStatsInstrumentation> rendering_stats_instrumentation_; | 373 scoped_ptr<RenderingStatsInstrumentation> rendering_stats_instrumentation_; |
374 | 374 |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
454 | 454 |
455 ScopedPtrVector<SwapPromise> swap_promise_list_; | 455 ScopedPtrVector<SwapPromise> swap_promise_list_; |
456 std::set<SwapPromiseMonitor*> swap_promise_monitor_; | 456 std::set<SwapPromiseMonitor*> swap_promise_monitor_; |
457 | 457 |
458 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); | 458 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); |
459 }; | 459 }; |
460 | 460 |
461 } // namespace cc | 461 } // namespace cc |
462 | 462 |
463 #endif // CC_TREES_LAYER_TREE_HOST_H_ | 463 #endif // CC_TREES_LAYER_TREE_HOST_H_ |
OLD | NEW |