Index: cc/trees/layer_tree_host.cc |
diff --git a/cc/trees/layer_tree_host.cc b/cc/trees/layer_tree_host.cc |
index 89afd2742940c30b93a210e4aa830d9fe7b5d5dc..af0bc5ba623bd982193af28e6f028b4f4716d6c5 100644 |
--- a/cc/trees/layer_tree_host.cc |
+++ b/cc/trees/layer_tree_host.cc |
@@ -1095,6 +1095,22 @@ bool LayerTreeHost::PaintContent(const LayerList& update_layer_list, |
return did_paint_content; |
} |
+void LayerTreeHost::AddHiddenSurfaceLayerId(Layer* layer) { |
+ DCHECK(layer->is_hidden()); |
+ const SurfaceId* surface_id = layer->GetSurfaceId(); |
+ if (surface_id) |
+ hidden_surface_layer_ids_.push_back(surface_id); |
+} |
+ |
+using SurfaceIdsList = std::vector<const SurfaceId*>; |
+const SurfaceIdsList* LayerTreeHost::HiddenSurfaceLayerIds() const { |
+ return &hidden_surface_layer_ids_; |
+} |
+ |
+void LayerTreeHost::ClearHiddenSurfaceLayerIds() { |
+ hidden_surface_layer_ids_.clear(); |
+} |
+ |
void LayerTreeHost::AddLayerShouldPushProperties(Layer* layer) { |
layers_that_should_push_properties_.insert(layer); |
} |