Commit ea93ee9f authored by Tal Pressman's avatar Tal Pressman Committed by Commit Bot

Minor cleanup, following this[1] comment.

[1] crrev.com/c/2265704/5/third_party/blink/renderer/platform/scheduler/main_thread/agent_scheduling_strategy.cc#225

Change-Id: I1b8b653c4ffdaf6e9073afd02a9f90619bcfe771
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2269380Reviewed-by: default avatarKentaro Hara <haraken@chromium.org>
Reviewed-by: default avatarKouhei Ueno <kouhei@chromium.org>
Commit-Queue: Kentaro Hara <haraken@chromium.org>
Commit-Queue: Kouhei Ueno <kouhei@chromium.org>
Commit-Queue: Tal Pressman <talp@chromium.org>
Auto-Submit: Tal Pressman <talp@chromium.org>
Cr-Commit-Position: refs/heads/master@{#782842}
parent 4870ac8d
......@@ -220,16 +220,14 @@ class TrackMainFrameSignal final : public AgentSchedulingStrategy {
return ShouldUpdatePolicy::kYes;
}
if (signal_ == PerAgentSignal::kDelayOnly) {
if (signal_ == PerAgentSignal::kDelayOnly)
delegate_.OnSetTimer(frame_scheduler, delay_);
}
else if (signal_ == PerAgentSignal::kFirstMeaningfulPaint)
SetWaitingForInput(true);
main_frames_.insert(&frame_scheduler);
main_frames_waiting_for_signal_.insert(&frame_scheduler);
if (signal_ == PerAgentSignal::kFirstMeaningfulPaint)
SetWaitingForInput(true);
return ShouldUpdatePolicy::kYes;
}
......
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