Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(451)

Issue 1420773003: scheduler: Don't block expensive loading tasks during main thread gestures (Closed)

Created:
5 years, 1 month ago by Sami
Modified:
5 years, 1 month ago
CC:
chromium-reviews, scheduler-bugs_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

scheduler: Don't block expensive loading tasks during main thread gestures Previously we were using the presence of main thread input gestures (e.g., a mouse drag) as a hint that expensive loading and timer tasks are non-essential. This patch relaxes the policy to allow loading tasks in this use case to avoid starving loading work for the entire duration of the gesture, e.g., for loading new content in an infinite scrolling scenario. BUG=548606 Committed: https://crrev.com/70eceecb80f82f7deea985549b52b97149ef9005 Cr-Commit-Position: refs/heads/master@{#357122}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Review comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+48 lines, -12 lines) Patch
M components/scheduler/renderer/renderer_scheduler_impl.cc View 3 chunks +27 lines, -12 lines 0 comments Download
M components/scheduler/renderer/renderer_scheduler_impl_unittest.cc View 1 1 chunk +21 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (3 generated)
Sami
5 years, 1 month ago (2015-10-30 14:47:00 UTC) #3
alex clarke (OOO till 29th)
https://codereview.chromium.org/1420773003/diff/1/components/scheduler/renderer/renderer_scheduler_impl_unittest.cc File components/scheduler/renderer/renderer_scheduler_impl_unittest.cc (right): https://codereview.chromium.org/1420773003/diff/1/components/scheduler/renderer/renderer_scheduler_impl_unittest.cc#newcode2155 components/scheduler/renderer/renderer_scheduler_impl_unittest.cc:2155: TestCompositorPolicy_ExpensiveLoadingTasksNotBlockedDuringMainThreadGestures) { Please shorten this. https://codereview.chromium.org/1420773003/diff/1/components/scheduler/renderer/renderer_scheduler_impl_unittest.cc#newcode2169 components/scheduler/renderer/renderer_scheduler_impl_unittest.cc:2169: EXPECT_THAT(run_order, Please ...
5 years, 1 month ago (2015-10-30 14:55:23 UTC) #4
Sami
Thanks, both addressed. https://codereview.chromium.org/1420773003/diff/1/components/scheduler/renderer/renderer_scheduler_impl_unittest.cc File components/scheduler/renderer/renderer_scheduler_impl_unittest.cc (right): https://codereview.chromium.org/1420773003/diff/1/components/scheduler/renderer/renderer_scheduler_impl_unittest.cc#newcode2155 components/scheduler/renderer/renderer_scheduler_impl_unittest.cc:2155: TestCompositorPolicy_ExpensiveLoadingTasksNotBlockedDuringMainThreadGestures) { On 2015/10/30 14:55:23, alexclarke1 ...
5 years, 1 month ago (2015-10-30 15:01:20 UTC) #5
alex clarke (OOO till 29th)
lgtm
5 years, 1 month ago (2015-10-30 15:10:39 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1420773003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1420773003/20001
5 years, 1 month ago (2015-10-30 15:11:15 UTC) #8
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 1 month ago (2015-10-30 16:44:40 UTC) #9
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/70eceecb80f82f7deea985549b52b97149ef9005 Cr-Commit-Position: refs/heads/master@{#357122}
5 years, 1 month ago (2015-10-30 16:45:17 UTC) #10
alex clarke (OOO till 29th)
This patch seems to have caused a big regression on ChromiumPerf/android-nexus7v2/smoothness.scrolling_tough_ad_cases / first_gesture_scroll_update_latency https://chromeperf.appspot.com/report?sid=c0a062750ab8431568733d9b766d025ca79fb3b89f6a3b3ec7ab0096bc48897d This ...
5 years, 1 month ago (2015-10-31 15:49:25 UTC) #11
picksi
Are you certain that this CL was the cause? Even if we don't revert it ...
5 years, 1 month ago (2015-11-02 12:34:49 UTC) #12
Sami
5 years, 1 month ago (2015-11-02 12:50:22 UTC) #13
Message was sent while issue was closed.
On 2015/11/02 12:34:49, picksi wrote:
> Are you certain that this CL was the cause? Even if we don't revert it would
be
> good to understand why this has made the tough_ad_cases worse, when
presumably,
> we would expect them to get better?

Yes, the issue was that we were missing handling for touch prediction in the
main thread use case. We've got a patch that fixes that and adds another use
case for synchronized scrolling to make it a little more obvious.

Powered by Google App Engine
This is Rietveld 408576698