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

Unified Diff: cc/trees/layer_tree_host_impl.cc

Issue 2905533002: cc : Store surface layer ids on LayerTreeHost and push them at commit (Closed)
Patch Set: comments 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 613093e8041bef8ff4eaa4fe55d41e2a39de7da6..7742bc0e162eb2c5459d09222dfef82adc375264 100644
--- a/cc/trees/layer_tree_host_impl.cc
+++ b/cc/trees/layer_tree_host_impl.cc
@@ -1631,19 +1631,10 @@ CompositorFrameMetadata LayerTreeHostImpl::MakeCompositorFrameMetadata() const {
IsActivelyScrolling() || mutator_host_->NeedsTickAnimations();
}
- for (LayerImpl* surface_layer : active_tree_->SurfaceLayers()) {
- SurfaceLayerImpl* surface_layer_impl =
- static_cast<SurfaceLayerImpl*>(surface_layer);
- if (settings_.enable_surface_synchronization) {
- if (surface_layer_impl->fallback_surface_info().is_valid()) {
- metadata.referenced_surfaces.push_back(
- surface_layer_impl->fallback_surface_info().id());
- }
- } else {
- metadata.referenced_surfaces.push_back(
- surface_layer_impl->primary_surface_info().id());
- }
+ for (auto& surface_id : active_tree_->SurfaceLayerIds()) {
+ metadata.referenced_surfaces.push_back(surface_id);
}
+
if (!InnerViewportScrollLayer())
return metadata;

Powered by Google App Engine
This is Rietveld 408576698