| 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 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 bool commit_pending; | 146 bool commit_pending; |
| 147 }; | 147 }; |
| 148 void ForceBeginFrameOnImplThread(CompletionEvent* completion); | 148 void ForceBeginFrameOnImplThread(CompletionEvent* completion); |
| 149 void BeginFrameCompleteOnImplThread( | 149 void BeginFrameCompleteOnImplThread( |
| 150 CompletionEvent* completion, | 150 CompletionEvent* completion, |
| 151 ResourceUpdateQueue* queue, | 151 ResourceUpdateQueue* queue, |
| 152 scoped_refptr<cc::ContextProvider> offscreen_context_provider); | 152 scoped_refptr<cc::ContextProvider> offscreen_context_provider); |
| 153 void BeginFrameAbortedOnImplThread(); | 153 void BeginFrameAbortedOnImplThread(); |
| 154 void RequestReadbackOnImplThread(ReadbackRequest* request); | 154 void RequestReadbackOnImplThread(ReadbackRequest* request); |
| 155 void FinishAllRenderingOnImplThread(CompletionEvent* completion); | 155 void FinishAllRenderingOnImplThread(CompletionEvent* completion); |
| 156 void InitializeImplOnImplThread(CompletionEvent* completion, | 156 void InitializeImplOnImplThread(CompletionEvent* completion); |
| 157 InputHandlerClient* input_handler_client); | |
| 158 void SetSurfaceReadyOnImplThread(); | 157 void SetSurfaceReadyOnImplThread(); |
| 159 void SetVisibleOnImplThread(CompletionEvent* completion, bool visible); | 158 void SetVisibleOnImplThread(CompletionEvent* completion, bool visible); |
| 160 void InitializeOutputSurfaceOnImplThread( | 159 void InitializeOutputSurfaceOnImplThread( |
| 161 scoped_ptr<OutputSurface> output_surface); | 160 scoped_ptr<OutputSurface> output_surface); |
| 162 void InitializeRendererOnImplThread(CompletionEvent* completion, | 161 void InitializeRendererOnImplThread(CompletionEvent* completion, |
| 163 bool* initialize_succeeded, | 162 bool* initialize_succeeded, |
| 164 RendererCapabilities* capabilities); | 163 RendererCapabilities* capabilities); |
| 165 void LayerTreeHostClosedOnImplThread(CompletionEvent* completion); | 164 void LayerTreeHostClosedOnImplThread(CompletionEvent* completion); |
| 166 void ManageTilesOnImplThread(); | 165 void ManageTilesOnImplThread(); |
| 167 void AcquireLayerTexturesForMainThreadOnImplThread( | 166 void AcquireLayerTexturesForMainThreadOnImplThread( |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 208 // Weak pointer to use when posting tasks to the impl thread. | 207 // Weak pointer to use when posting tasks to the impl thread. |
| 209 base::WeakPtr<ThreadProxy> impl_thread_weak_ptr_; | 208 base::WeakPtr<ThreadProxy> impl_thread_weak_ptr_; |
| 210 | 209 |
| 211 base::WeakPtrFactory<ThreadProxy> weak_factory_on_impl_thread_; | 210 base::WeakPtrFactory<ThreadProxy> weak_factory_on_impl_thread_; |
| 212 | 211 |
| 213 base::WeakPtr<ThreadProxy> main_thread_weak_ptr_; | 212 base::WeakPtr<ThreadProxy> main_thread_weak_ptr_; |
| 214 base::WeakPtrFactory<ThreadProxy> weak_factory_; | 213 base::WeakPtrFactory<ThreadProxy> weak_factory_; |
| 215 | 214 |
| 216 scoped_ptr<LayerTreeHostImpl> layer_tree_host_impl_; | 215 scoped_ptr<LayerTreeHostImpl> layer_tree_host_impl_; |
| 217 | 216 |
| 218 scoped_ptr<InputHandlerClient> input_handler_client_on_impl_thread_; | |
| 219 | |
| 220 scoped_ptr<Scheduler> scheduler_on_impl_thread_; | 217 scoped_ptr<Scheduler> scheduler_on_impl_thread_; |
| 221 | 218 |
| 222 // Holds on to the context we might use for compositing in between | 219 // Holds on to the context we might use for compositing in between |
| 223 // InitializeContext() and InitializeRenderer() calls. | 220 // InitializeContext() and InitializeRenderer() calls. |
| 224 scoped_ptr<OutputSurface> | 221 scoped_ptr<OutputSurface> |
| 225 output_surface_before_initialization_on_impl_thread_; | 222 output_surface_before_initialization_on_impl_thread_; |
| 226 | 223 |
| 227 // Set when the main thread is waiting on a ScheduledActionBeginFrame to be | 224 // Set when the main thread is waiting on a ScheduledActionBeginFrame to be |
| 228 // issued. | 225 // issued. |
| 229 CompletionEvent* begin_frame_completion_event_on_impl_thread_; | 226 CompletionEvent* begin_frame_completion_event_on_impl_thread_; |
| (...skipping 28 matching lines...) Expand all Loading... |
| 258 | 255 |
| 259 base::TimeTicks smoothness_takes_priority_expiration_time_; | 256 base::TimeTicks smoothness_takes_priority_expiration_time_; |
| 260 bool renew_tree_priority_on_impl_thread_pending_; | 257 bool renew_tree_priority_on_impl_thread_pending_; |
| 261 | 258 |
| 262 DISALLOW_COPY_AND_ASSIGN(ThreadProxy); | 259 DISALLOW_COPY_AND_ASSIGN(ThreadProxy); |
| 263 }; | 260 }; |
| 264 | 261 |
| 265 } // namespace cc | 262 } // namespace cc |
| 266 | 263 |
| 267 #endif // CC_TREES_THREAD_PROXY_H_ | 264 #endif // CC_TREES_THREAD_PROXY_H_ |
| OLD | NEW |