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

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: review comments addressed. 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..d46d6274532c2bbc943eb757ec42d0759f4f6917 100644
--- a/cc/trees/layer_tree_host.cc
+++ b/cc/trees/layer_tree_host.cc
@@ -396,6 +396,12 @@ void LayerTreeHost::SetOutputSurface(scoped_ptr<OutputSurface> surface) {
proxy_->SetOutputSurface(surface.Pass());
}
+scoped_ptr<OutputSurface> LayerTreeHost::ReleaseOutputSurface() {
+ DCHECK(!visible_);
no sievers 2015/09/10 17:27:45 DCHECK(!output_surface_lost_) also
sohanjg 2015/09/11 07:00:49 Done.
+ output_surface_lost_ = true;
+ return proxy_->ReleaseOutputSurface();
+}
+
void LayerTreeHost::RequestNewOutputSurface() {
client_->RequestNewOutputSurface();
}

Powered by Google App Engine
This is Rietveld 408576698