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

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

Issue 1287043002: cc: Setup API to release OutputSurface from LTHClient. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update 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_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 <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 void BeginMainFrame(const BeginFrameArgs& args); 105 void BeginMainFrame(const BeginFrameArgs& args);
106 void BeginMainFrameNotExpectedSoon(); 106 void BeginMainFrameNotExpectedSoon();
107 void AnimateLayers(base::TimeTicks monotonic_frame_begin_time); 107 void AnimateLayers(base::TimeTicks monotonic_frame_begin_time);
108 void DidStopFlinging(); 108 void DidStopFlinging();
109 void Layout(); 109 void Layout();
110 void BeginCommitOnImplThread(LayerTreeHostImpl* host_impl); 110 void BeginCommitOnImplThread(LayerTreeHostImpl* host_impl);
111 void FinishCommitOnImplThread(LayerTreeHostImpl* host_impl); 111 void FinishCommitOnImplThread(LayerTreeHostImpl* host_impl);
112 void WillCommit(); 112 void WillCommit();
113 void CommitComplete(); 113 void CommitComplete();
114 void SetOutputSurface(scoped_ptr<OutputSurface> output_surface); 114 void SetOutputSurface(scoped_ptr<OutputSurface> output_surface);
115 scoped_ptr<OutputSurface> ReleaseOutputSurface();
115 void RequestNewOutputSurface(); 116 void RequestNewOutputSurface();
116 void DidInitializeOutputSurface(); 117 void DidInitializeOutputSurface();
117 void DidFailToInitializeOutputSurface(); 118 void DidFailToInitializeOutputSurface();
118 virtual scoped_ptr<LayerTreeHostImpl> CreateLayerTreeHostImpl( 119 virtual scoped_ptr<LayerTreeHostImpl> CreateLayerTreeHostImpl(
119 LayerTreeHostImplClient* client); 120 LayerTreeHostImplClient* client);
120 void DidLoseOutputSurface(); 121 void DidLoseOutputSurface();
121 bool output_surface_lost() const { return output_surface_lost_; } 122 bool output_surface_lost() const { return output_surface_lost_; }
122 void DidCommitAndDrawFrame() { client_->DidCommitAndDrawFrame(); } 123 void DidCommitAndDrawFrame() { client_->DidCommitAndDrawFrame(); }
123 void DidCompleteSwapBuffers() { client_->DidCompleteSwapBuffers(); } 124 void DidCompleteSwapBuffers() { client_->DidCompleteSwapBuffers(); }
124 bool UpdateLayers(); 125 bool UpdateLayers();
(...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after
503 504
504 uint32_t surface_id_namespace_; 505 uint32_t surface_id_namespace_;
505 uint32_t next_surface_sequence_; 506 uint32_t next_surface_sequence_;
506 507
507 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); 508 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost);
508 }; 509 };
509 510
510 } // namespace cc 511 } // namespace cc
511 512
512 #endif // CC_TREES_LAYER_TREE_HOST_H_ 513 #endif // CC_TREES_LAYER_TREE_HOST_H_
OLDNEW
« no previous file with comments | « cc/test/fake_proxy.cc ('k') | cc/trees/layer_tree_host.cc » ('j') | cc/trees/layer_tree_host.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698