| 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 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 DrawResult DoComposite(LayerTreeHostImpl::FrameData* frame); | 116 DrawResult DoComposite(LayerTreeHostImpl::FrameData* frame); |
| 117 void DoSwap(); | 117 void DoSwap(); |
| 118 void DidCommitAndDrawFrame(); | 118 void DidCommitAndDrawFrame(); |
| 119 void CommitComplete(); | 119 void CommitComplete(); |
| 120 | 120 |
| 121 bool ShouldComposite() const; | 121 bool ShouldComposite() const; |
| 122 void ScheduleRequestNewCompositorFrameSink(); | 122 void ScheduleRequestNewCompositorFrameSink(); |
| 123 | 123 |
| 124 // Accessed on main thread only. | 124 // Accessed on main thread only. |
| 125 LayerTreeHostInProcess* layer_tree_host_; | 125 LayerTreeHostInProcess* layer_tree_host_; |
| 126 LayerTreeHostSingleThreadClient* client_; | 126 LayerTreeHostSingleThreadClient* single_thread_client_; |
| 127 | 127 |
| 128 TaskRunnerProvider* task_runner_provider_; | 128 TaskRunnerProvider* task_runner_provider_; |
| 129 | 129 |
| 130 // Used on the Thread, but checked on main thread during | 130 // Used on the Thread, but checked on main thread during |
| 131 // initialization/shutdown. | 131 // initialization/shutdown. |
| 132 std::unique_ptr<LayerTreeHostImpl> layer_tree_host_impl_; | 132 std::unique_ptr<LayerTreeHostImpl> layer_tree_host_impl_; |
| 133 | 133 |
| 134 // Accessed from both threads. | 134 // Accessed from both threads. |
| 135 std::unique_ptr<Scheduler> scheduler_on_impl_thread_; | 135 std::unique_ptr<Scheduler> scheduler_on_impl_thread_; |
| 136 | 136 |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 233 private: | 233 private: |
| 234 DebugScopedSetImplThread impl_thread_; | 234 DebugScopedSetImplThread impl_thread_; |
| 235 DebugScopedSetMainThreadBlocked main_thread_blocked_; | 235 DebugScopedSetMainThreadBlocked main_thread_blocked_; |
| 236 | 236 |
| 237 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetImplThreadAndMainThreadBlocked); | 237 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetImplThreadAndMainThreadBlocked); |
| 238 }; | 238 }; |
| 239 | 239 |
| 240 } // namespace cc | 240 } // namespace cc |
| 241 | 241 |
| 242 #endif // CC_TREES_SINGLE_THREAD_PROXY_H_ | 242 #endif // CC_TREES_SINGLE_THREAD_PROXY_H_ |
| OLD | NEW |