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

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

Issue 23593003: cc: Avoid updating animations in the background without an active tree (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: alternate method Created 7 years, 3 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
« no previous file with comments | « no previous file | cc/trees/thread_proxy.cc » ('j') | cc/trees/thread_proxy.cc » ('J')
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"
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 void StartCommitOnImplThread( 145 void StartCommitOnImplThread(
146 CompletionEvent* completion, 146 CompletionEvent* completion,
147 ResourceUpdateQueue* queue, 147 ResourceUpdateQueue* queue,
148 scoped_refptr<cc::ContextProvider> offscreen_context_provider); 148 scoped_refptr<cc::ContextProvider> offscreen_context_provider);
149 void BeginFrameAbortedByMainThreadOnImplThread(bool did_handle); 149 void BeginFrameAbortedByMainThreadOnImplThread(bool did_handle);
150 void RequestReadbackOnImplThread(ReadbackRequest* request); 150 void RequestReadbackOnImplThread(ReadbackRequest* request);
151 void FinishAllRenderingOnImplThread(CompletionEvent* completion); 151 void FinishAllRenderingOnImplThread(CompletionEvent* completion);
152 void InitializeImplOnImplThread(CompletionEvent* completion); 152 void InitializeImplOnImplThread(CompletionEvent* completion);
153 void SetLayerTreeHostClientReadyOnImplThread(); 153 void SetLayerTreeHostClientReadyOnImplThread();
154 void SetVisibleOnImplThread(CompletionEvent* completion, bool visible); 154 void SetVisibleOnImplThread(CompletionEvent* completion, bool visible);
155 void UpdateBackgroundAnimateTicking();
155 void HasInitializedOutputSurfaceOnImplThread( 156 void HasInitializedOutputSurfaceOnImplThread(
156 CompletionEvent* completion, 157 CompletionEvent* completion,
157 bool* has_initialized_output_surface); 158 bool* has_initialized_output_surface);
158 void InitializeOutputSurfaceOnImplThread( 159 void InitializeOutputSurfaceOnImplThread(
159 CompletionEvent* completion, 160 CompletionEvent* completion,
160 scoped_ptr<OutputSurface> output_surface, 161 scoped_ptr<OutputSurface> output_surface,
161 scoped_refptr<ContextProvider> offscreen_context_provider, 162 scoped_refptr<ContextProvider> offscreen_context_provider,
162 bool* success, 163 bool* success,
163 RendererCapabilities* capabilities); 164 RendererCapabilities* capabilities);
164 void FinishGLOnImplThread(CompletionEvent* completion); 165 void FinishGLOnImplThread(CompletionEvent* completion);
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
260 // activation_duration_history_. 261 // activation_duration_history_.
261 base::TimeTicks begin_frame_sent_to_main_thread_time_; 262 base::TimeTicks begin_frame_sent_to_main_thread_time_;
262 base::TimeTicks commit_complete_time_; 263 base::TimeTicks commit_complete_time_;
263 264
264 DISALLOW_COPY_AND_ASSIGN(ThreadProxy); 265 DISALLOW_COPY_AND_ASSIGN(ThreadProxy);
265 }; 266 };
266 267
267 } // namespace cc 268 } // namespace cc
268 269
269 #endif // CC_TREES_THREAD_PROXY_H_ 270 #endif // CC_TREES_THREAD_PROXY_H_
OLDNEW
« no previous file with comments | « no previous file | cc/trees/thread_proxy.cc » ('j') | cc/trees/thread_proxy.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698