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

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

Issue 816543004: Update from https://crrev.com/308996 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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
« no previous file with comments | « cc/trees/single_thread_proxy.cc ('k') | cc/trees/thread_proxy.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <string> 8 #include <string>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
11 #include "base/memory/weak_ptr.h" 11 #include "base/memory/weak_ptr.h"
12 #include "base/time/time.h" 12 #include "base/time/time.h"
13 #include "cc/animation/animation_events.h" 13 #include "cc/animation/animation_events.h"
14 #include "cc/base/completion_event.h" 14 #include "cc/base/completion_event.h"
15 #include "cc/base/delayed_unique_notifier.h" 15 #include "cc/base/delayed_unique_notifier.h"
16 #include "cc/resources/resource_update_controller.h" 16 #include "cc/resources/resource_update_controller.h"
17 #include "cc/scheduler/commit_earlyout_reason.h"
17 #include "cc/scheduler/scheduler.h" 18 #include "cc/scheduler/scheduler.h"
18 #include "cc/trees/layer_tree_host_impl.h" 19 #include "cc/trees/layer_tree_host_impl.h"
19 #include "cc/trees/proxy.h" 20 #include "cc/trees/proxy.h"
20 #include "cc/trees/proxy_timing_history.h" 21 #include "cc/trees/proxy_timing_history.h"
21 22
22 namespace base { 23 namespace base {
23 class SingleThreadTaskRunner; 24 class SingleThreadTaskRunner;
24 } 25 }
25 26
26 namespace cc { 27 namespace cc {
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
248 void RequestNewOutputSurface(); 249 void RequestNewOutputSurface();
249 void DidInitializeOutputSurface(bool success, 250 void DidInitializeOutputSurface(bool success,
250 const RendererCapabilities& capabilities); 251 const RendererCapabilities& capabilities);
251 void SendCommitRequestToImplThreadIfNeeded(); 252 void SendCommitRequestToImplThreadIfNeeded();
252 253
253 // Called on impl thread. 254 // Called on impl thread.
254 struct SchedulerStateRequest; 255 struct SchedulerStateRequest;
255 256
256 void StartCommitOnImplThread(CompletionEvent* completion, 257 void StartCommitOnImplThread(CompletionEvent* completion,
257 ResourceUpdateQueue* queue); 258 ResourceUpdateQueue* queue);
258 void BeginMainFrameAbortedOnImplThread(bool did_handle); 259 void BeginMainFrameAbortedOnImplThread(CommitEarlyOutReason reason);
259 void FinishAllRenderingOnImplThread(CompletionEvent* completion); 260 void FinishAllRenderingOnImplThread(CompletionEvent* completion);
260 void InitializeImplOnImplThread(CompletionEvent* completion); 261 void InitializeImplOnImplThread(CompletionEvent* completion);
261 void SetLayerTreeHostClientReadyOnImplThread(); 262 void SetLayerTreeHostClientReadyOnImplThread();
262 void SetVisibleOnImplThread(CompletionEvent* completion, bool visible); 263 void SetVisibleOnImplThread(CompletionEvent* completion, bool visible);
263 void HasInitializedOutputSurfaceOnImplThread( 264 void HasInitializedOutputSurfaceOnImplThread(
264 CompletionEvent* completion, 265 CompletionEvent* completion,
265 bool* has_initialized_output_surface); 266 bool* has_initialized_output_surface);
266 void DeleteContentsTexturesOnImplThread(CompletionEvent* completion); 267 void DeleteContentsTexturesOnImplThread(CompletionEvent* completion);
267 void InitializeOutputSurfaceOnImplThread( 268 void InitializeOutputSurfaceOnImplThread(
268 scoped_ptr<OutputSurface> output_surface); 269 scoped_ptr<OutputSurface> output_surface);
(...skipping 27 matching lines...) Expand all
296 297
297 base::WeakPtr<ThreadProxy> main_thread_weak_ptr_; 298 base::WeakPtr<ThreadProxy> main_thread_weak_ptr_;
298 base::WeakPtr<ThreadProxy> impl_thread_weak_ptr_; 299 base::WeakPtr<ThreadProxy> impl_thread_weak_ptr_;
299 300
300 DISALLOW_COPY_AND_ASSIGN(ThreadProxy); 301 DISALLOW_COPY_AND_ASSIGN(ThreadProxy);
301 }; 302 };
302 303
303 } // namespace cc 304 } // namespace cc
304 305
305 #endif // CC_TREES_THREAD_PROXY_H_ 306 #endif // CC_TREES_THREAD_PROXY_H_
OLDNEW
« no previous file with comments | « cc/trees/single_thread_proxy.cc ('k') | cc/trees/thread_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698