| 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 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 bool commit_pending; | 151 bool commit_pending; |
| 152 }; | 152 }; |
| 153 void ForceBeginFrameOnImplThread(CompletionEvent* completion); | 153 void ForceBeginFrameOnImplThread(CompletionEvent* completion); |
| 154 void BeginFrameCompleteOnImplThread( | 154 void BeginFrameCompleteOnImplThread( |
| 155 CompletionEvent* completion, | 155 CompletionEvent* completion, |
| 156 ResourceUpdateQueue* queue, | 156 ResourceUpdateQueue* queue, |
| 157 scoped_refptr<cc::ContextProvider> offscreen_context_provider); | 157 scoped_refptr<cc::ContextProvider> offscreen_context_provider); |
| 158 void BeginFrameAbortedOnImplThread(); | 158 void BeginFrameAbortedOnImplThread(); |
| 159 void RequestReadbackOnImplThread(ReadbackRequest* request); | 159 void RequestReadbackOnImplThread(ReadbackRequest* request); |
| 160 void FinishAllRenderingOnImplThread(CompletionEvent* completion); | 160 void FinishAllRenderingOnImplThread(CompletionEvent* completion); |
| 161 void InitializeImplOnImplThread(CompletionEvent* completion, | 161 void InitializeImplOnImplThread(CompletionEvent* completion); |
| 162 InputHandlerClient* input_handler_client); | |
| 163 void SetLayerTreeHostClientReadyOnImplThread(); | 162 void SetLayerTreeHostClientReadyOnImplThread(); |
| 164 void SetVisibleOnImplThread(CompletionEvent* completion, bool visible); | 163 void SetVisibleOnImplThread(CompletionEvent* completion, bool visible); |
| 165 void HasInitializedOutputSurfaceOnImplThread( | 164 void HasInitializedOutputSurfaceOnImplThread( |
| 166 CompletionEvent* completion, | 165 CompletionEvent* completion, |
| 167 bool* has_initialized_output_surface); | 166 bool* has_initialized_output_surface); |
| 168 void InitializeOutputSurfaceOnImplThread( | 167 void InitializeOutputSurfaceOnImplThread( |
| 169 CompletionEvent* completion, | 168 CompletionEvent* completion, |
| 170 scoped_ptr<OutputSurface> output_surface, | 169 scoped_ptr<OutputSurface> output_surface, |
| 171 scoped_refptr<ContextProvider> offscreen_context_provider, | 170 scoped_refptr<ContextProvider> offscreen_context_provider, |
| 172 bool* success, | 171 bool* success, |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 214 // anything else. | 213 // anything else. |
| 215 scoped_ptr<OutputSurface> first_output_surface_; | 214 scoped_ptr<OutputSurface> first_output_surface_; |
| 216 | 215 |
| 217 base::WeakPtrFactory<ThreadProxy> weak_factory_on_impl_thread_; | 216 base::WeakPtrFactory<ThreadProxy> weak_factory_on_impl_thread_; |
| 218 | 217 |
| 219 base::WeakPtr<ThreadProxy> main_thread_weak_ptr_; | 218 base::WeakPtr<ThreadProxy> main_thread_weak_ptr_; |
| 220 base::WeakPtrFactory<ThreadProxy> weak_factory_; | 219 base::WeakPtrFactory<ThreadProxy> weak_factory_; |
| 221 | 220 |
| 222 scoped_ptr<LayerTreeHostImpl> layer_tree_host_impl_; | 221 scoped_ptr<LayerTreeHostImpl> layer_tree_host_impl_; |
| 223 | 222 |
| 224 scoped_ptr<InputHandlerClient> input_handler_client_on_impl_thread_; | |
| 225 | |
| 226 scoped_ptr<Scheduler> scheduler_on_impl_thread_; | 223 scoped_ptr<Scheduler> scheduler_on_impl_thread_; |
| 227 | 224 |
| 228 // Set when the main thread is waiting on a ScheduledActionBeginFrame to be | 225 // Set when the main thread is waiting on a ScheduledActionBeginFrame to be |
| 229 // issued. | 226 // issued. |
| 230 CompletionEvent* begin_frame_completion_event_on_impl_thread_; | 227 CompletionEvent* begin_frame_completion_event_on_impl_thread_; |
| 231 | 228 |
| 232 // Set when the main thread is waiting on a readback. | 229 // Set when the main thread is waiting on a readback. |
| 233 ReadbackRequest* readback_request_on_impl_thread_; | 230 ReadbackRequest* readback_request_on_impl_thread_; |
| 234 | 231 |
| 235 // Set when the main thread is waiting on a commit to complete. | 232 // Set when the main thread is waiting on a commit to complete. |
| (...skipping 24 matching lines...) Expand all Loading... |
| 260 | 257 |
| 261 base::TimeTicks smoothness_takes_priority_expiration_time_; | 258 base::TimeTicks smoothness_takes_priority_expiration_time_; |
| 262 bool renew_tree_priority_on_impl_thread_pending_; | 259 bool renew_tree_priority_on_impl_thread_pending_; |
| 263 | 260 |
| 264 DISALLOW_COPY_AND_ASSIGN(ThreadProxy); | 261 DISALLOW_COPY_AND_ASSIGN(ThreadProxy); |
| 265 }; | 262 }; |
| 266 | 263 |
| 267 } // namespace cc | 264 } // namespace cc |
| 268 | 265 |
| 269 #endif // CC_TREES_THREAD_PROXY_H_ | 266 #endif // CC_TREES_THREAD_PROXY_H_ |
| OLD | NEW |