| 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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 | 105 |
| 106 protected: | 106 protected: |
| 107 SingleThreadProxy(LayerTreeHost* layer_tree_host, | 107 SingleThreadProxy(LayerTreeHost* layer_tree_host, |
| 108 LayerTreeHostSingleThreadClient* client, | 108 LayerTreeHostSingleThreadClient* client, |
| 109 TaskRunnerProvider* task_runner_provider); | 109 TaskRunnerProvider* task_runner_provider); |
| 110 | 110 |
| 111 private: | 111 private: |
| 112 void BeginMainFrame(const BeginFrameArgs& begin_frame_args); | 112 void BeginMainFrame(const BeginFrameArgs& begin_frame_args); |
| 113 void BeginMainFrameAbortedOnImplThread(CommitEarlyOutReason reason); | 113 void BeginMainFrameAbortedOnImplThread(CommitEarlyOutReason reason); |
| 114 void DoBeginMainFrame(const BeginFrameArgs& begin_frame_args); | 114 void DoBeginMainFrame(const BeginFrameArgs& begin_frame_args); |
| 115 void DoPainting(); |
| 115 void DoCommit(); | 116 void DoCommit(); |
| 116 DrawResult DoComposite(LayerTreeHostImpl::FrameData* frame); | 117 DrawResult DoComposite(LayerTreeHostImpl::FrameData* frame); |
| 117 void DoSwap(); | 118 void DoSwap(); |
| 118 void DidCommitAndDrawFrame(); | 119 void DidCommitAndDrawFrame(); |
| 119 void CommitComplete(); | 120 void CommitComplete(); |
| 120 | 121 |
| 121 bool ShouldComposite() const; | 122 bool ShouldComposite() const; |
| 122 void ScheduleRequestNewCompositorFrameSink(); | 123 void ScheduleRequestNewCompositorFrameSink(); |
| 123 | 124 |
| 124 // Accessed on main thread only. | 125 // Accessed on main thread only. |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 233 private: | 234 private: |
| 234 DebugScopedSetImplThread impl_thread_; | 235 DebugScopedSetImplThread impl_thread_; |
| 235 DebugScopedSetMainThreadBlocked main_thread_blocked_; | 236 DebugScopedSetMainThreadBlocked main_thread_blocked_; |
| 236 | 237 |
| 237 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetImplThreadAndMainThreadBlocked); | 238 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetImplThreadAndMainThreadBlocked); |
| 238 }; | 239 }; |
| 239 | 240 |
| 240 } // namespace cc | 241 } // namespace cc |
| 241 | 242 |
| 242 #endif // CC_TREES_SINGLE_THREAD_PROXY_H_ | 243 #endif // CC_TREES_SINGLE_THREAD_PROXY_H_ |
| OLD | NEW |