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(); |
} |