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

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

Issue 1287043002: cc: Setup API to release OutputSurface from LTHClient. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: unit test Created 5 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
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 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
236 void BeginMainFrame( 236 void BeginMainFrame(
237 scoped_ptr<BeginMainFrameAndCommitState> begin_main_frame_state); 237 scoped_ptr<BeginMainFrameAndCommitState> begin_main_frame_state);
238 void BeginMainFrameNotExpectedSoon(); 238 void BeginMainFrameNotExpectedSoon();
239 void DidCommitAndDrawFrame(); 239 void DidCommitAndDrawFrame();
240 void DidCompleteSwapBuffers(); 240 void DidCompleteSwapBuffers();
241 void SetAnimationEvents(scoped_ptr<AnimationEventsVector> queue); 241 void SetAnimationEvents(scoped_ptr<AnimationEventsVector> queue);
242 void DidLoseOutputSurface(); 242 void DidLoseOutputSurface();
243 void RequestNewOutputSurface(); 243 void RequestNewOutputSurface();
244 void DidInitializeOutputSurface(bool success, 244 void DidInitializeOutputSurface(bool success,
245 const RendererCapabilities& capabilities); 245 const RendererCapabilities& capabilities);
246 scoped_ptr<OutputSurface> GetOutputSurface();
no sievers 2015/09/10 00:00:22 override and move up to under 'Proxy implementatio
sohanjg 2015/09/10 15:07:23 Done.
246 void SendCommitRequestToImplThreadIfNeeded(); 247 void SendCommitRequestToImplThreadIfNeeded();
247 void DidCompletePageScaleAnimation(); 248 void DidCompletePageScaleAnimation();
248 249
249 // Called on impl thread. 250 // Called on impl thread.
250 struct SchedulerStateRequest; 251 struct SchedulerStateRequest;
251 252
252 void StartCommitOnImplThread(CompletionEvent* completion); 253 void StartCommitOnImplThread(CompletionEvent* completion);
253 void BeginMainFrameAbortedOnImplThread(CommitEarlyOutReason reason); 254 void BeginMainFrameAbortedOnImplThread(CommitEarlyOutReason reason);
254 void FinishAllRenderingOnImplThread(CompletionEvent* completion); 255 void FinishAllRenderingOnImplThread(CompletionEvent* completion);
255 void InitializeImplOnImplThread(CompletionEvent* completion); 256 void InitializeImplOnImplThread(CompletionEvent* completion);
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
294 295
295 base::WeakPtr<ThreadProxy> main_thread_weak_ptr_; 296 base::WeakPtr<ThreadProxy> main_thread_weak_ptr_;
296 base::WeakPtr<ThreadProxy> impl_thread_weak_ptr_; 297 base::WeakPtr<ThreadProxy> impl_thread_weak_ptr_;
297 298
298 DISALLOW_COPY_AND_ASSIGN(ThreadProxy); 299 DISALLOW_COPY_AND_ASSIGN(ThreadProxy);
299 }; 300 };
300 301
301 } // namespace cc 302 } // namespace cc
302 303
303 #endif // CC_TREES_THREAD_PROXY_H_ 304 #endif // CC_TREES_THREAD_PROXY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698