| Index: cc/surfaces/surface_factory.cc
|
| diff --git a/cc/surfaces/surface_factory.cc b/cc/surfaces/surface_factory.cc
|
| index f6a6e0ec0f26f0f0ff75070cc33f9038a1073069..659ed06ad828227bad8798f2d586e497d31e97bc 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_ ||
|
|
|