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 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 // Accessed from both threads. | 146 // Accessed from both threads. |
147 scoped_ptr<Scheduler> scheduler_on_impl_thread_; | 147 scoped_ptr<Scheduler> scheduler_on_impl_thread_; |
148 ProxyTimingHistory timing_history_; | 148 ProxyTimingHistory timing_history_; |
149 | 149 |
150 scoped_ptr<BlockingTaskRunner::CapturePostTasks> commit_blocking_task_runner_; | 150 scoped_ptr<BlockingTaskRunner::CapturePostTasks> commit_blocking_task_runner_; |
151 scoped_ptr<ResourceUpdateQueue> queue_for_commit_; | 151 scoped_ptr<ResourceUpdateQueue> queue_for_commit_; |
152 bool next_frame_is_newly_committed_frame_; | 152 bool next_frame_is_newly_committed_frame_; |
153 | 153 |
154 bool inside_draw_; | 154 bool inside_draw_; |
155 bool defer_commits_; | 155 bool defer_commits_; |
156 bool commit_was_deferred_; | |
157 bool commit_requested_; | 156 bool commit_requested_; |
158 bool inside_synchronous_composite_; | 157 bool inside_synchronous_composite_; |
159 | 158 |
160 // True if a request to the LayerTreeHostClient to create an output surface | 159 // True if a request to the LayerTreeHostClient to create an output surface |
161 // is still outstanding. | 160 // is still outstanding. |
162 bool output_surface_creation_requested_; | 161 bool output_surface_creation_requested_; |
163 | 162 |
164 // This is the callback for the scheduled RequestNewOutputSurface. | 163 // This is the callback for the scheduled RequestNewOutputSurface. |
165 base::CancelableClosure output_surface_creation_callback_; | 164 base::CancelableClosure output_surface_creation_callback_; |
166 | 165 |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
228 private: | 227 private: |
229 DebugScopedSetImplThread impl_thread_; | 228 DebugScopedSetImplThread impl_thread_; |
230 DebugScopedSetMainThreadBlocked main_thread_blocked_; | 229 DebugScopedSetMainThreadBlocked main_thread_blocked_; |
231 | 230 |
232 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetImplThreadAndMainThreadBlocked); | 231 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetImplThreadAndMainThreadBlocked); |
233 }; | 232 }; |
234 | 233 |
235 } // namespace cc | 234 } // namespace cc |
236 | 235 |
237 #endif // CC_TREES_SINGLE_THREAD_PROXY_H_ | 236 #endif // CC_TREES_SINGLE_THREAD_PROXY_H_ |
OLD | NEW |