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_THREAD_PROXY_H_ | 5 #ifndef CC_TREES_THREAD_PROXY_H_ |
6 #define CC_TREES_THREAD_PROXY_H_ | 6 #define CC_TREES_THREAD_PROXY_H_ |
7 | 7 |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
10 #include "base/time.h" | 10 #include "base/time.h" |
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
217 | 217 |
218 scoped_ptr<InputHandler> input_handler_on_impl_thread_; | 218 scoped_ptr<InputHandler> input_handler_on_impl_thread_; |
219 | 219 |
220 scoped_ptr<Scheduler> scheduler_on_impl_thread_; | 220 scoped_ptr<Scheduler> scheduler_on_impl_thread_; |
221 | 221 |
222 // Holds on to the context we might use for compositing in between | 222 // Holds on to the context we might use for compositing in between |
223 // InitializeContext() and InitializeRenderer() calls. | 223 // InitializeContext() and InitializeRenderer() calls. |
224 scoped_ptr<OutputSurface> | 224 scoped_ptr<OutputSurface> |
225 output_surface_before_initialization_on_impl_thread_; | 225 output_surface_before_initialization_on_impl_thread_; |
226 | 226 |
227 // Set when the main thread is waiting on a scheduledActionBeginFrame to be | 227 // Set when the main thread is waiting on a ScheduledActionBeginFrame to be |
228 // issued. | 228 // issued. |
229 CompletionEvent* begin_frame_completion_event_on_impl_thread_; | 229 CompletionEvent* begin_frame_completion_event_on_impl_thread_; |
230 | 230 |
231 // Set when the main thread is waiting on a readback. | 231 // Set when the main thread is waiting on a readback. |
232 ReadbackRequest* readback_request_on_impl_thread_; | 232 ReadbackRequest* readback_request_on_impl_thread_; |
233 | 233 |
234 // Set when the main thread is waiting on a commit to complete. | 234 // Set when the main thread is waiting on a commit to complete. |
235 CompletionEvent* commit_completion_event_on_impl_thread_; | 235 CompletionEvent* commit_completion_event_on_impl_thread_; |
236 | 236 |
237 // Set when the main thread is waiting on a pending tree activation. | 237 // Set when the main thread is waiting on a pending tree activation. |
238 CompletionEvent* completion_event_for_commit_held_on_tree_activation_; | 238 CompletionEvent* completion_event_for_commit_held_on_tree_activation_; |
239 | 239 |
240 // Set when the main thread is waiting on layers to be drawn. | 240 // Set when the main thread is waiting on layers to be drawn. |
241 CompletionEvent* texture_acquisition_completion_event_on_impl_thread_; | 241 CompletionEvent* texture_acquisition_completion_event_on_impl_thread_; |
242 | 242 |
243 scoped_ptr<ResourceUpdateController> | 243 scoped_ptr<ResourceUpdateController> |
244 current_resource_update_controller_on_impl_thread_; | 244 current_resource_update_controller_on_impl_thread_; |
245 | 245 |
246 // Set when the next draw should post didCommitAndDrawFrame to the main | 246 // Set when the next draw should post DidCommitAndDrawFrame to the main |
247 // thread. | 247 // thread. |
248 bool next_frame_is_newly_committed_frame_on_impl_thread_; | 248 bool next_frame_is_newly_committed_frame_on_impl_thread_; |
249 | 249 |
250 bool render_vsync_enabled_; | 250 bool render_vsync_enabled_; |
251 | 251 |
252 bool inside_draw_; | 252 bool inside_draw_; |
253 | 253 |
254 bool defer_commits_; | 254 bool defer_commits_; |
255 scoped_ptr<BeginFrameAndCommitState> pending_deferred_commit_; | 255 scoped_ptr<BeginFrameAndCommitState> pending_deferred_commit_; |
256 | 256 |
257 base::TimeTicks smoothness_takes_priority_expiration_time_; | 257 base::TimeTicks smoothness_takes_priority_expiration_time_; |
258 bool renew_tree_priority_on_impl_thread_pending_; | 258 bool renew_tree_priority_on_impl_thread_pending_; |
259 }; | 259 }; |
260 | 260 |
261 } // namespace cc | 261 } // namespace cc |
262 | 262 |
263 #endif // CC_TREES_THREAD_PROXY_H_ | 263 #endif // CC_TREES_THREAD_PROXY_H_ |
OLD | NEW |