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

Unified Diff: cc/trees/layer_tree_host_impl.cc

Issue 2846653002: cc : Stop pushing layers from hidden subtrees at commit
Patch Set: hide mask layer also Created 3 years, 7 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_impl.cc
diff --git a/cc/trees/layer_tree_host_impl.cc b/cc/trees/layer_tree_host_impl.cc
index 54dc7bbd336bc73f606cdad27254392eed83b148..8d5bd8e37f2028425b4ac12acceabc12730a81ed 100644
--- a/cc/trees/layer_tree_host_impl.cc
+++ b/cc/trees/layer_tree_host_impl.cc
@@ -1635,6 +1635,11 @@ CompositorFrameMetadata LayerTreeHostImpl::MakeCompositorFrameMetadata() const {
surface_layer_impl->primary_surface_info().id());
}
}
+
+ for (auto* surface_id : *active_tree_->HiddenSurfaceLayerIds()) {
+ metadata.referenced_surfaces.push_back(*surface_id);
+ }
+
if (!InnerViewportScrollLayer())
return metadata;

Powered by Google App Engine
This is Rietveld 408576698