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 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
137 LayerTreeHostSingleThreadClient* client_; | 137 LayerTreeHostSingleThreadClient* client_; |
138 | 138 |
139 TaskRunnerProvider* task_runner_provider_; | 139 TaskRunnerProvider* task_runner_provider_; |
140 | 140 |
141 // Used on the Thread, but checked on main thread during | 141 // Used on the Thread, but checked on main thread during |
142 // initialization/shutdown. | 142 // initialization/shutdown. |
143 scoped_ptr<LayerTreeHostImpl> layer_tree_host_impl_; | 143 scoped_ptr<LayerTreeHostImpl> layer_tree_host_impl_; |
144 RendererCapabilities renderer_capabilities_for_main_thread_; | 144 RendererCapabilities renderer_capabilities_for_main_thread_; |
145 | 145 |
146 // Accessed from both threads. | 146 // Accessed from both threads. |
147 scoped_ptr<BeginFrameSource> external_begin_frame_source_; | 147 scoped_ptr<BeginFrameSource> begin_frame_source_; |
Sami
2016/03/08 19:15:25
Sorry to latch onto the naming but I would keep th
enne (OOO)
2016/03/08 21:38:02
This ends up being either the external one or the
Sami
2016/03/09 14:36:23
The new design with precise names for all the thre
| |
148 scoped_ptr<SyntheticBeginFrameSource> synthetic_frame_source_; | |
Sami
2016/03/08 19:15:25
nit: synthetic_begin_frame_source_
| |
148 scoped_ptr<Scheduler> scheduler_on_impl_thread_; | 149 scoped_ptr<Scheduler> scheduler_on_impl_thread_; |
149 | 150 |
151 base::TimeDelta authoritative_vsync_interval_; | |
152 base::TimeTicks last_vsync_timebase_; | |
153 | |
150 scoped_ptr<BlockingTaskRunner::CapturePostTasks> commit_blocking_task_runner_; | 154 scoped_ptr<BlockingTaskRunner::CapturePostTasks> commit_blocking_task_runner_; |
151 bool next_frame_is_newly_committed_frame_; | 155 bool next_frame_is_newly_committed_frame_; |
152 | 156 |
153 #if DCHECK_IS_ON() | 157 #if DCHECK_IS_ON() |
154 bool inside_impl_frame_; | 158 bool inside_impl_frame_; |
155 #endif | 159 #endif |
156 bool inside_draw_; | 160 bool inside_draw_; |
157 bool defer_commits_; | 161 bool defer_commits_; |
158 bool animate_requested_; | 162 bool animate_requested_; |
159 bool commit_requested_; | 163 bool commit_requested_; |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
232 private: | 236 private: |
233 DebugScopedSetImplThread impl_thread_; | 237 DebugScopedSetImplThread impl_thread_; |
234 DebugScopedSetMainThreadBlocked main_thread_blocked_; | 238 DebugScopedSetMainThreadBlocked main_thread_blocked_; |
235 | 239 |
236 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetImplThreadAndMainThreadBlocked); | 240 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetImplThreadAndMainThreadBlocked); |
237 }; | 241 }; |
238 | 242 |
239 } // namespace cc | 243 } // namespace cc |
240 | 244 |
241 #endif // CC_TREES_SINGLE_THREAD_PROXY_H_ | 245 #endif // CC_TREES_SINGLE_THREAD_PROXY_H_ |
OLD | NEW |