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