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 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 LayerTreeHostSingleThreadClient* client, | 127 LayerTreeHostSingleThreadClient* client, |
128 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner, | 128 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner, |
129 scoped_ptr<BeginFrameSource> external_begin_frame_source); | 129 scoped_ptr<BeginFrameSource> external_begin_frame_source); |
130 | 130 |
131 private: | 131 private: |
132 void BeginMainFrame(const BeginFrameArgs& begin_frame_args); | 132 void BeginMainFrame(const BeginFrameArgs& begin_frame_args); |
133 void BeginMainFrameAbortedOnImplThread(CommitEarlyOutReason reason); | 133 void BeginMainFrameAbortedOnImplThread(CommitEarlyOutReason reason); |
134 void DoAnimate(); | 134 void DoAnimate(); |
135 void DoBeginMainFrame(const BeginFrameArgs& begin_frame_args); | 135 void DoBeginMainFrame(const BeginFrameArgs& begin_frame_args); |
136 void DoCommit(); | 136 void DoCommit(); |
137 DrawResult DoComposite(base::TimeTicks frame_begin_time, | 137 DrawResult DoComposite(LayerTreeHostImpl::FrameData* frame); |
138 LayerTreeHostImpl::FrameData* frame); | |
139 void DoSwap(); | 138 void DoSwap(); |
140 void DidCommitAndDrawFrame(); | 139 void DidCommitAndDrawFrame(); |
141 void CommitComplete(); | 140 void CommitComplete(); |
142 | 141 |
143 bool ShouldComposite() const; | 142 bool ShouldComposite() const; |
144 void ScheduleRequestNewOutputSurface(); | 143 void ScheduleRequestNewOutputSurface(); |
145 | 144 |
146 // Accessed on main thread only. | 145 // Accessed on main thread only. |
147 LayerTreeHost* layer_tree_host_; | 146 LayerTreeHost* layer_tree_host_; |
148 LayerTreeHostSingleThreadClient* client_; | 147 LayerTreeHostSingleThreadClient* client_; |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
236 private: | 235 private: |
237 DebugScopedSetImplThread impl_thread_; | 236 DebugScopedSetImplThread impl_thread_; |
238 DebugScopedSetMainThreadBlocked main_thread_blocked_; | 237 DebugScopedSetMainThreadBlocked main_thread_blocked_; |
239 | 238 |
240 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetImplThreadAndMainThreadBlocked); | 239 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetImplThreadAndMainThreadBlocked); |
241 }; | 240 }; |
242 | 241 |
243 } // namespace cc | 242 } // namespace cc |
244 | 243 |
245 #endif // CC_TREES_SINGLE_THREAD_PROXY_H_ | 244 #endif // CC_TREES_SINGLE_THREAD_PROXY_H_ |
OLD | NEW |