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

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: 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 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 3dfb248c4927c894032fdcd5a0517108c6d94f2a..feb69136caef8e1e0d49768372043b55cdcbc180 100644
--- a/cc/trees/layer_tree_host.cc
+++ b/cc/trees/layer_tree_host.cc
@@ -396,6 +396,14 @@ void LayerTreeHost::SetOutputSurface(scoped_ptr<OutputSurface> surface) {
proxy_->SetOutputSurface(surface.Pass());
}
+scoped_ptr<OutputSurface> LayerTreeHost::ReleaseOutputSurface() {
+ DCHECK(!visible_);
+ DCHECK(!output_surface_lost_);
+
+ output_surface_lost_ = true;
danakj 2015/09/17 18:43:55 rather than doing this directly here, could this f
+ return proxy_->ReleaseOutputSurface();
+}
+
void LayerTreeHost::RequestNewOutputSurface() {
client_->RequestNewOutputSurface();
}

Powered by Google App Engine
This is Rietveld 408576698