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