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_SINGLE_THREAD_PROXY_H_ | 5 #ifndef CC_TREES_SINGLE_THREAD_PROXY_H_ |
6 #define CC_TREES_SINGLE_THREAD_PROXY_H_ | 6 #define CC_TREES_SINGLE_THREAD_PROXY_H_ |
7 | 7 |
8 #include <limits> | 8 #include <limits> |
9 | 9 |
10 #include "base/cancelable_callback.h" | 10 #include "base/cancelable_callback.h" |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 void CompositeImmediately(base::TimeTicks frame_begin_time); | 111 void CompositeImmediately(base::TimeTicks frame_begin_time); |
112 | 112 |
113 private: | 113 private: |
114 SingleThreadProxy( | 114 SingleThreadProxy( |
115 LayerTreeHost* layer_tree_host, | 115 LayerTreeHost* layer_tree_host, |
116 LayerTreeHostSingleThreadClient* client, | 116 LayerTreeHostSingleThreadClient* client, |
117 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner); | 117 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner); |
118 | 118 |
119 void BeginMainFrame(); | 119 void BeginMainFrame(); |
120 void BeginMainFrameAbortedOnImplThread(); | 120 void BeginMainFrameAbortedOnImplThread(); |
121 void DoAnimate(); | |
122 void DoBeginMainFrame(const BeginFrameArgs& begin_frame_args); | 121 void DoBeginMainFrame(const BeginFrameArgs& begin_frame_args); |
123 void DoCommit(); | 122 void DoCommit(); |
124 DrawResult DoComposite(base::TimeTicks frame_begin_time, | 123 DrawResult DoComposite(base::TimeTicks frame_begin_time, |
125 LayerTreeHostImpl::FrameData* frame); | 124 LayerTreeHostImpl::FrameData* frame); |
126 void DoSwap(); | 125 void DoSwap(); |
127 void DidCommitAndDrawFrame(); | 126 void DidCommitAndDrawFrame(); |
128 void CommitComplete(); | 127 void CommitComplete(); |
129 | 128 |
130 bool ShouldComposite() const; | 129 bool ShouldComposite() const; |
| 130 void UpdateBackgroundAnimateTicking(); |
131 void ScheduleRequestNewOutputSurface(); | 131 void ScheduleRequestNewOutputSurface(); |
132 | 132 |
133 // Accessed on main thread only. | 133 // Accessed on main thread only. |
134 LayerTreeHost* layer_tree_host_; | 134 LayerTreeHost* layer_tree_host_; |
135 LayerTreeHostSingleThreadClient* client_; | 135 LayerTreeHostSingleThreadClient* client_; |
136 | 136 |
137 // Used on the Thread, but checked on main thread during | 137 // Used on the Thread, but checked on main thread during |
138 // initialization/shutdown. | 138 // initialization/shutdown. |
139 scoped_ptr<LayerTreeHostImpl> layer_tree_host_impl_; | 139 scoped_ptr<LayerTreeHostImpl> layer_tree_host_impl_; |
140 RendererCapabilities renderer_capabilities_for_main_thread_; | 140 RendererCapabilities renderer_capabilities_for_main_thread_; |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
222 private: | 222 private: |
223 DebugScopedSetImplThread impl_thread_; | 223 DebugScopedSetImplThread impl_thread_; |
224 DebugScopedSetMainThreadBlocked main_thread_blocked_; | 224 DebugScopedSetMainThreadBlocked main_thread_blocked_; |
225 | 225 |
226 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetImplThreadAndMainThreadBlocked); | 226 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetImplThreadAndMainThreadBlocked); |
227 }; | 227 }; |
228 | 228 |
229 } // namespace cc | 229 } // namespace cc |
230 | 230 |
231 #endif // CC_TREES_SINGLE_THREAD_PROXY_H_ | 231 #endif // CC_TREES_SINGLE_THREAD_PROXY_H_ |
OLD | NEW |