Index: cc/surfaces/surface_factory.cc |
diff --git a/cc/surfaces/surface_factory.cc b/cc/surfaces/surface_factory.cc |
index 880cb8c828a675fe85cd426bfb9caa05355e6cbc..5b23e8c1df14ee279c25ddf4257cbce746d7fbda 100644 |
--- a/cc/surfaces/surface_factory.cc |
+++ b/cc/surfaces/surface_factory.cc |
@@ -47,6 +47,14 @@ void SurfaceFactory::SubmitCompositorFrame( |
const DrawCallback& callback) { |
TRACE_EVENT0("cc", "SurfaceFactory::SubmitCompositorFrame"); |
DCHECK(local_surface_id.is_valid()); |
+ |
+ for (ui::LatencyInfo& latency : frame.metadata.latency_info) { |
+ if (latency.latency_components().size() > 0) { |
+ latency.AddLatencyNumber(ui::DISPLAY_COMPOSITOR_RECEIVED_FRAME_COMPONENT, |
+ 0, 0); |
+ } |
+ } |
+ |
std::unique_ptr<Surface> surface; |
bool create_new_surface = |
(!current_surface_ || |