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

Side by Side Diff: cc/trees/layer_tree_host.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/test/layer_tree_test.cc ('k') | cc/trees/layer_tree_host.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_LAYER_TREE_HOST_H_ 5 #ifndef CC_TREES_LAYER_TREE_HOST_H_
6 #define CC_TREES_LAYER_TREE_HOST_H_ 6 #define CC_TREES_LAYER_TREE_HOST_H_
7 7
8 #include <limits> 8 #include <limits>
9 #include <list> 9 #include <list>
10 #include <set> 10 #include <set>
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 } 105 }
106 void DidBeginMainFrame(); 106 void DidBeginMainFrame();
107 void BeginMainFrame(const BeginFrameArgs& args); 107 void BeginMainFrame(const BeginFrameArgs& args);
108 void AnimateLayers(base::TimeTicks monotonic_frame_begin_time); 108 void AnimateLayers(base::TimeTicks monotonic_frame_begin_time);
109 void DidStopFlinging(); 109 void DidStopFlinging();
110 void Layout(); 110 void Layout();
111 void BeginCommitOnImplThread(LayerTreeHostImpl* host_impl); 111 void BeginCommitOnImplThread(LayerTreeHostImpl* host_impl);
112 void FinishCommitOnImplThread(LayerTreeHostImpl* host_impl); 112 void FinishCommitOnImplThread(LayerTreeHostImpl* host_impl);
113 void WillCommit(); 113 void WillCommit();
114 void CommitComplete(); 114 void CommitComplete();
115 void SetOutputSurface(scoped_ptr<OutputSurface> output_surface); 115 scoped_ptr<OutputSurface> CreateOutputSurface();
116 void RequestNewOutputSurface();
117 virtual scoped_ptr<LayerTreeHostImpl> CreateLayerTreeHostImpl( 116 virtual scoped_ptr<LayerTreeHostImpl> CreateLayerTreeHostImpl(
118 LayerTreeHostImplClient* client); 117 LayerTreeHostImplClient* client);
119 void DidLoseOutputSurface(); 118 void DidLoseOutputSurface();
120 bool output_surface_lost() const { return output_surface_lost_; } 119 bool output_surface_lost() const { return output_surface_lost_; }
121 virtual void OnCreateAndInitializeOutputSurfaceAttempted(bool success); 120 virtual void OnCreateAndInitializeOutputSurfaceAttempted(bool success);
122 void DidCommitAndDrawFrame() { client_->DidCommitAndDrawFrame(); } 121 void DidCommitAndDrawFrame() { client_->DidCommitAndDrawFrame(); }
123 void DidCompleteSwapBuffers() { client_->DidCompleteSwapBuffers(); } 122 void DidCompleteSwapBuffers() { client_->DidCompleteSwapBuffers(); }
124 void DeleteContentsTexturesOnImplThread(ResourceProvider* resource_provider); 123 void DeleteContentsTexturesOnImplThread(ResourceProvider* resource_provider);
125 bool UpdateLayers(ResourceUpdateQueue* queue); 124 bool UpdateLayers(ResourceUpdateQueue* queue);
126 125
(...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after
456 455
457 ScopedPtrVector<SwapPromise> swap_promise_list_; 456 ScopedPtrVector<SwapPromise> swap_promise_list_;
458 std::set<SwapPromiseMonitor*> swap_promise_monitor_; 457 std::set<SwapPromiseMonitor*> swap_promise_monitor_;
459 458
460 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); 459 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost);
461 }; 460 };
462 461
463 } // namespace cc 462 } // namespace cc
464 463
465 #endif // CC_TREES_LAYER_TREE_HOST_H_ 464 #endif // CC_TREES_LAYER_TREE_HOST_H_
OLDNEW
« no previous file with comments | « cc/test/layer_tree_test.cc ('k') | cc/trees/layer_tree_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698