Commit 92e04464 authored by Sadrul Habib Chowdhury's avatar Sadrul Habib Chowdhury Committed by Commit Bot

latency-info: Add a speculative fix.

Add a speculative fix in SurfaceAggregator::Aggregate() to make sure it
doesn't accumulate too many LatencyInfo objects.

BUG=834421

Cq-Include-Trybots: luci.chromium.try:android_optional_gpu_tests_rel;master.tryserver.blink:linux_trusty_blink_rel
Change-Id: Ifd41d901050a954279b642cab972ca6ec6d560e2
Reviewed-on: https://chromium-review.googlesource.com/1053793Reviewed-by: default avatarCharlie Reis <creis@chromium.org>
Reviewed-by: default avatarFady Samuel <fsamuel@chromium.org>
Commit-Queue: Fady Samuel <fsamuel@chromium.org>
Cr-Commit-Position: refs/heads/master@{#557992}
parent c3a2babd
......@@ -1236,6 +1236,10 @@ CompositorFrame SurfaceAggregator::Aggregate(
Surface* surface = manager_->GetSurfaceForId(it.first);
if (surface)
surface->TakeLatencyInfo(&frame.metadata.latency_info);
if (!ui::LatencyInfo::Verify(frame.metadata.latency_info,
"SurfaceAggregator::Aggregate")) {
break;
}
}
// TODO(jamesr): Aggregate all resource references into the returned frame's
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment