| 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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 | 122 |
| 123 // Accessed on main thread only. | 123 // Accessed on main thread only. |
| 124 LayerTreeHostInProcess* layer_tree_host_; | 124 LayerTreeHostInProcess* layer_tree_host_; |
| 125 LayerTreeHostSingleThreadClient* single_thread_client_; | 125 LayerTreeHostSingleThreadClient* single_thread_client_; |
| 126 | 126 |
| 127 TaskRunnerProvider* task_runner_provider_; | 127 TaskRunnerProvider* task_runner_provider_; |
| 128 | 128 |
| 129 // Used on the Thread, but checked on main thread during | 129 // Used on the Thread, but checked on main thread during |
| 130 // initialization/shutdown. | 130 // initialization/shutdown. |
| 131 std::unique_ptr<LayerTreeHostImpl> layer_tree_host_impl_; | 131 std::unique_ptr<LayerTreeHostImpl> layer_tree_host_impl_; |
| 132 std::unique_ptr<SyntheticBeginFrameSource> synthetic_begin_frame_source_; |
| 132 | 133 |
| 133 // Accessed from both threads. | 134 // Accessed from both threads. |
| 134 std::unique_ptr<Scheduler> scheduler_on_impl_thread_; | 135 std::unique_ptr<Scheduler> scheduler_on_impl_thread_; |
| 135 | 136 |
| 136 std::unique_ptr<BlockingTaskRunner::CapturePostTasks> | 137 std::unique_ptr<BlockingTaskRunner::CapturePostTasks> |
| 137 commit_blocking_task_runner_; | 138 commit_blocking_task_runner_; |
| 138 bool next_frame_is_newly_committed_frame_; | 139 bool next_frame_is_newly_committed_frame_; |
| 139 | 140 |
| 140 #if DCHECK_IS_ON() | 141 #if DCHECK_IS_ON() |
| 141 bool inside_impl_frame_; | 142 bool inside_impl_frame_; |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 232 private: | 233 private: |
| 233 DebugScopedSetImplThread impl_thread_; | 234 DebugScopedSetImplThread impl_thread_; |
| 234 DebugScopedSetMainThreadBlocked main_thread_blocked_; | 235 DebugScopedSetMainThreadBlocked main_thread_blocked_; |
| 235 | 236 |
| 236 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetImplThreadAndMainThreadBlocked); | 237 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetImplThreadAndMainThreadBlocked); |
| 237 }; | 238 }; |
| 238 | 239 |
| 239 } // namespace cc | 240 } // namespace cc |
| 240 | 241 |
| 241 #endif // CC_TREES_SINGLE_THREAD_PROXY_H_ | 242 #endif // CC_TREES_SINGLE_THREAD_PROXY_H_ |
| OLD | NEW |