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

Unified Diff: cc/trees/layer_tree_host.cc

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, 4 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 side-by-side diff with in-line comments
Download patch
Index: cc/trees/layer_tree_host.cc
diff --git a/cc/trees/layer_tree_host.cc b/cc/trees/layer_tree_host.cc
index 4d72eb246854c54d69d5c89b806c73be7d989a0b..c09550fb7999d1f0166cd9f1b10a6ad609acdda7 100644
--- a/cc/trees/layer_tree_host.cc
+++ b/cc/trees/layer_tree_host.cc
@@ -397,6 +397,11 @@ void LayerTreeHost::SetOutputSurface(scoped_ptr<OutputSurface> surface) {
proxy_->SetOutputSurface(surface.Pass());
}
+scoped_ptr<OutputSurface> LayerTreeHost::GetOutputSurface() {
no sievers 2015/09/10 00:00:22 DCHECK(!visible_); Otherwise it seems like you co
sohanjg 2015/09/10 15:07:23 sorry, i didnt get this part, you mean before aski
no sievers 2015/09/10 17:27:45 Yes, I think it makes sense to properly clean up r
sohanjg 2015/09/11 07:00:49 Acknowledged.
+ output_surface_lost_ = true;
+ return proxy_->GetOutputSurface();
+}
+
void LayerTreeHost::RequestNewOutputSurface() {
client_->RequestNewOutputSurface();
}

Powered by Google App Engine
This is Rietveld 408576698