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

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

Issue 606113003: Revert of Make cc output surface creation async (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 2 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
« 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"
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 base::WeakPtrFactory<ThreadProxy> weak_factory; 145 base::WeakPtrFactory<ThreadProxy> weak_factory;
146 }; 146 };
147 147
148 const MainThreadOnly& main() const; 148 const MainThreadOnly& main() const;
149 const MainThreadOrBlockedMainThread& blocked_main() const; 149 const MainThreadOrBlockedMainThread& blocked_main() const;
150 const CompositorThreadOnly& impl() const; 150 const CompositorThreadOnly& impl() const;
151 151
152 // Proxy implementation 152 // Proxy implementation
153 virtual void FinishAllRendering() OVERRIDE; 153 virtual void FinishAllRendering() OVERRIDE;
154 virtual bool IsStarted() const OVERRIDE; 154 virtual bool IsStarted() const OVERRIDE;
155 virtual void SetOutputSurface(scoped_ptr<OutputSurface>) OVERRIDE;
156 virtual void SetLayerTreeHostClientReady() OVERRIDE; 155 virtual void SetLayerTreeHostClientReady() OVERRIDE;
157 virtual void SetVisible(bool visible) OVERRIDE; 156 virtual void SetVisible(bool visible) OVERRIDE;
158 virtual const RendererCapabilities& GetRendererCapabilities() const OVERRIDE; 157 virtual const RendererCapabilities& GetRendererCapabilities() const OVERRIDE;
159 virtual void SetNeedsAnimate() OVERRIDE; 158 virtual void SetNeedsAnimate() OVERRIDE;
160 virtual void SetNeedsUpdateLayers() OVERRIDE; 159 virtual void SetNeedsUpdateLayers() OVERRIDE;
161 virtual void SetNeedsCommit() OVERRIDE; 160 virtual void SetNeedsCommit() OVERRIDE;
162 virtual void SetNeedsRedraw(const gfx::Rect& damage_rect) OVERRIDE; 161 virtual void SetNeedsRedraw(const gfx::Rect& damage_rect) OVERRIDE;
163 virtual void SetNextCommitWaitsForActivation() OVERRIDE; 162 virtual void SetNextCommitWaitsForActivation() OVERRIDE;
164 virtual void NotifyInputThrottledUntilCommit() OVERRIDE; 163 virtual void NotifyInputThrottledUntilCommit() OVERRIDE;
165 virtual void SetDeferCommits(bool defer_commits) OVERRIDE; 164 virtual void SetDeferCommits(bool defer_commits) OVERRIDE;
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 private: 238 private:
240 // Called on main thread. 239 // Called on main thread.
241 void SetRendererCapabilitiesMainThreadCopy( 240 void SetRendererCapabilitiesMainThreadCopy(
242 const RendererCapabilities& capabilities); 241 const RendererCapabilities& capabilities);
243 void BeginMainFrame( 242 void BeginMainFrame(
244 scoped_ptr<BeginMainFrameAndCommitState> begin_main_frame_state); 243 scoped_ptr<BeginMainFrameAndCommitState> begin_main_frame_state);
245 void DidCommitAndDrawFrame(); 244 void DidCommitAndDrawFrame();
246 void DidCompleteSwapBuffers(); 245 void DidCompleteSwapBuffers();
247 void SetAnimationEvents(scoped_ptr<AnimationEventsVector> queue); 246 void SetAnimationEvents(scoped_ptr<AnimationEventsVector> queue);
248 void DidLoseOutputSurface(); 247 void DidLoseOutputSurface();
249 void RequestNewOutputSurface(); 248 void CreateAndInitializeOutputSurface();
250 void DidInitializeOutputSurface(bool success, 249 void DidInitializeOutputSurface(bool success,
251 const RendererCapabilities& capabilities); 250 const RendererCapabilities& capabilities);
252 void SendCommitRequestToImplThreadIfNeeded(); 251 void SendCommitRequestToImplThreadIfNeeded();
253 252
254 // Called on impl thread. 253 // Called on impl thread.
255 struct SchedulerStateRequest; 254 struct SchedulerStateRequest;
256 255
257 void StartCommitOnImplThread(CompletionEvent* completion, 256 void StartCommitOnImplThread(CompletionEvent* completion,
258 ResourceUpdateQueue* queue); 257 ResourceUpdateQueue* queue);
259 void BeginMainFrameAbortedOnImplThread(bool did_handle); 258 void BeginMainFrameAbortedOnImplThread(bool did_handle);
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
298 297
299 base::WeakPtr<ThreadProxy> main_thread_weak_ptr_; 298 base::WeakPtr<ThreadProxy> main_thread_weak_ptr_;
300 base::WeakPtr<ThreadProxy> impl_thread_weak_ptr_; 299 base::WeakPtr<ThreadProxy> impl_thread_weak_ptr_;
301 300
302 DISALLOW_COPY_AND_ASSIGN(ThreadProxy); 301 DISALLOW_COPY_AND_ASSIGN(ThreadProxy);
303 }; 302 };
304 303
305 } // namespace cc 304 } // namespace cc
306 305
307 #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