Index: cc/trees/layer_tree_impl.cc |
diff --git a/cc/trees/layer_tree_impl.cc b/cc/trees/layer_tree_impl.cc |
index 622894949aca12fb11f1604c9593ff5ee45130d4..117db2a4cc419ca669aafa7055a63eeddaa3023f 100644 |
--- a/cc/trees/layer_tree_impl.cc |
+++ b/cc/trees/layer_tree_impl.cc |
@@ -1301,6 +1301,17 @@ void LayerTreeImpl::RemoveLayerWithCopyOutputRequest(LayerImpl* layer) { |
} |
} |
+void LayerTreeImpl::AddSurfaceLayer(LayerImpl* layer) { |
+ surface_layers_.push_back(layer); |
+} |
+ |
+void LayerTreeImpl::RemoveSurfaceLayer(LayerImpl* layer) { |
+ std::vector<LayerImpl*>::iterator it = |
+ std::find(surface_layers_.begin(), surface_layers_.end(), layer); |
+ DCHECK(it != surface_layers_.end()); |
+ surface_layers_.erase(it); |
+} |
+ |
const std::vector<LayerImpl*>& LayerTreeImpl::LayersWithCopyOutputRequest() |
const { |
// Only the active tree needs to know about layers with copy requests, as |