| Index: cc/surfaces/surface_factory.cc
|
| diff --git a/cc/surfaces/surface_factory.cc b/cc/surfaces/surface_factory.cc
|
| index 7d65ec2ecff77a1f99cf1ad965eb3fe33b9292e9..5e057a1777dbfdb53e8116df373ed110bd9cfa50 100644
|
| --- a/cc/surfaces/surface_factory.cc
|
| +++ b/cc/surfaces/surface_factory.cc
|
| @@ -51,6 +51,11 @@ void SurfaceFactory::SubmitCompositorFrame(
|
| TRACE_EVENT0("cc", "SurfaceFactory::SubmitCompositorFrame");
|
| DCHECK(local_surface_id.is_valid());
|
|
|
| + if (!ui::LatencyInfo::Verify(frame.metadata.latency_info,
|
| + "RenderWidgetHostImpl::OnSwapCompositorFrame")) {
|
| + std::vector<ui::LatencyInfo>().swap(frame.metadata.latency_info);
|
| + }
|
| +
|
| for (ui::LatencyInfo& latency : frame.metadata.latency_info) {
|
| if (latency.latency_components().size() > 0) {
|
| latency.AddLatencyNumber(ui::DISPLAY_COMPOSITOR_RECEIVED_FRAME_COMPONENT,
|
|
|