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 43b8018b3e32e9515af7c8e92d15d4ec98fabad7..8643dbc01a0f583b3a080633de9c2c26c701374b 100644 |
--- a/cc/trees/layer_tree_host_impl.cc |
+++ b/cc/trees/layer_tree_host_impl.cc |
@@ -43,6 +43,7 @@ |
#include "cc/layers/painted_scrollbar_layer_impl.h" |
#include "cc/layers/render_surface_impl.h" |
#include "cc/layers/scrollbar_layer_impl_base.h" |
+#include "cc/layers/surface_layer_impl.h" |
#include "cc/layers/viewport.h" |
#include "cc/output/compositor_frame_metadata.h" |
#include "cc/output/copy_output_request.h" |
@@ -1562,6 +1563,10 @@ CompositorFrameMetadata LayerTreeHostImpl::MakeCompositorFrameMetadata() const { |
!OuterViewportScrollLayer()->user_scrollable_vertical(); |
} |
+ for (LayerImpl* surface_layer : active_tree_->SurfaceLayers()) { |
+ metadata.referenced_surfaces.push_back( |
+ static_cast<SurfaceLayerImpl*>(surface_layer)->surface_id()); |
+ } |
if (!InnerViewportScrollLayer()) |
return metadata; |