Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(109)

Side by Side Diff: cc/trees/thread_proxy.h

Issue 13844021: Move compositor thread input handling logic into content (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix win component build Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 bool commit_pending; 147 bool commit_pending;
148 }; 148 };
149 void ForceBeginFrameOnImplThread(CompletionEvent* completion); 149 void ForceBeginFrameOnImplThread(CompletionEvent* completion);
150 void BeginFrameCompleteOnImplThread( 150 void BeginFrameCompleteOnImplThread(
151 CompletionEvent* completion, 151 CompletionEvent* completion,
152 ResourceUpdateQueue* queue, 152 ResourceUpdateQueue* queue,
153 scoped_refptr<cc::ContextProvider> offscreen_context_provider); 153 scoped_refptr<cc::ContextProvider> offscreen_context_provider);
154 void BeginFrameAbortedOnImplThread(); 154 void BeginFrameAbortedOnImplThread();
155 void RequestReadbackOnImplThread(ReadbackRequest* request); 155 void RequestReadbackOnImplThread(ReadbackRequest* request);
156 void FinishAllRenderingOnImplThread(CompletionEvent* completion); 156 void FinishAllRenderingOnImplThread(CompletionEvent* completion);
157 void InitializeImplOnImplThread(CompletionEvent* completion, 157 void InitializeImplOnImplThread(CompletionEvent* completion);
158 InputHandlerClient* input_handler_client);
159 void SetSurfaceReadyOnImplThread(); 158 void SetSurfaceReadyOnImplThread();
160 void SetVisibleOnImplThread(CompletionEvent* completion, bool visible); 159 void SetVisibleOnImplThread(CompletionEvent* completion, bool visible);
161 void HasInitializedOutputSurfaceOnImplThread( 160 void HasInitializedOutputSurfaceOnImplThread(
162 CompletionEvent* completion, 161 CompletionEvent* completion,
163 bool* has_initialized_output_surface); 162 bool* has_initialized_output_surface);
164 void InitializeOutputSurfaceOnImplThread( 163 void InitializeOutputSurfaceOnImplThread(
165 CompletionEvent* completion, 164 CompletionEvent* completion,
166 scoped_ptr<OutputSurface> output_surface, 165 scoped_ptr<OutputSurface> output_surface,
167 scoped_refptr<ContextProvider> offscreen_context_provider, 166 scoped_refptr<ContextProvider> offscreen_context_provider,
168 bool* success, 167 bool* success,
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 // anything else. 209 // anything else.
211 scoped_ptr<OutputSurface> first_output_surface_; 210 scoped_ptr<OutputSurface> first_output_surface_;
212 211
213 base::WeakPtrFactory<ThreadProxy> weak_factory_on_impl_thread_; 212 base::WeakPtrFactory<ThreadProxy> weak_factory_on_impl_thread_;
214 213
215 base::WeakPtr<ThreadProxy> main_thread_weak_ptr_; 214 base::WeakPtr<ThreadProxy> main_thread_weak_ptr_;
216 base::WeakPtrFactory<ThreadProxy> weak_factory_; 215 base::WeakPtrFactory<ThreadProxy> weak_factory_;
217 216
218 scoped_ptr<LayerTreeHostImpl> layer_tree_host_impl_; 217 scoped_ptr<LayerTreeHostImpl> layer_tree_host_impl_;
219 218
220 scoped_ptr<InputHandlerClient> input_handler_client_on_impl_thread_;
221
222 scoped_ptr<Scheduler> scheduler_on_impl_thread_; 219 scoped_ptr<Scheduler> scheduler_on_impl_thread_;
223 220
224 // Set when the main thread is waiting on a ScheduledActionBeginFrame to be 221 // Set when the main thread is waiting on a ScheduledActionBeginFrame to be
225 // issued. 222 // issued.
226 CompletionEvent* begin_frame_completion_event_on_impl_thread_; 223 CompletionEvent* begin_frame_completion_event_on_impl_thread_;
227 224
228 // Set when the main thread is waiting on a readback. 225 // Set when the main thread is waiting on a readback.
229 ReadbackRequest* readback_request_on_impl_thread_; 226 ReadbackRequest* readback_request_on_impl_thread_;
230 227
231 // Set when the main thread is waiting on a commit to complete. 228 // Set when the main thread is waiting on a commit to complete.
(...skipping 23 matching lines...) Expand all
255 252
256 base::TimeTicks smoothness_takes_priority_expiration_time_; 253 base::TimeTicks smoothness_takes_priority_expiration_time_;
257 bool renew_tree_priority_on_impl_thread_pending_; 254 bool renew_tree_priority_on_impl_thread_pending_;
258 255
259 DISALLOW_COPY_AND_ASSIGN(ThreadProxy); 256 DISALLOW_COPY_AND_ASSIGN(ThreadProxy);
260 }; 257 };
261 258
262 } // namespace cc 259 } // namespace cc
263 260
264 #endif // CC_TREES_THREAD_PROXY_H_ 261 #endif // CC_TREES_THREAD_PROXY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698