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

Issue 522903002: cc: Be less aggressive about scheduling for scroll handlers (Closed)

Created:
6 years, 3 months ago by Sami
Modified:
6 years, 3 months ago
Reviewers:
brianderson
CC:
chromium-reviews, cc-bugs_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

cc: Be less aggressive about scheduling for scroll handlers A previous patch changed the scheduling policy so that scroll handlers get more of a chance of completing in the same frame as the scroll update ("best effort sync scrolling"). It turns out this went a little too far by fully disabling prefer smoothness mode in the presense of scroll handlers. For instance, this caused us to start synchronously waiting for asynchronous texture upload completion, leading to skipped frames. This patch adjusts the logic so that scroll handlers are still given an opportunity to complete within the same frame (i.e., the deadline isn't triggered early), but the tree activation policy is to prefer existing content over new content. We also rename the smoothness mode in the scheduler to "impl latency takes priority" to make its purpose clearer. BUG=404267 Committed: https://crrev.com/733d7abae5f8665da809ac743d1f18f9230f7bf4 Cr-Commit-Position: refs/heads/master@{#293369}

Patch Set 1 #

Total comments: 1

Patch Set 2 : Renamed scheduler part. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+38 lines, -30 lines) Patch
M cc/scheduler/scheduler.h View 1 1 chunk +1 line, -1 line 0 comments Download
M cc/scheduler/scheduler.cc View 1 2 chunks +3 lines, -3 lines 0 comments Download
M cc/scheduler/scheduler_state_machine.h View 1 2 chunks +7 lines, -5 lines 0 comments Download
M cc/scheduler/scheduler_state_machine.cc View 1 5 chunks +10 lines, -9 lines 0 comments Download
M cc/scheduler/scheduler_state_machine_unittest.cc View 1 3 chunks +4 lines, -4 lines 0 comments Download
M cc/scheduler/scheduler_unittest.cc View 1 3 chunks +4 lines, -4 lines 0 comments Download
M cc/trees/thread_proxy.cc View 1 2 chunks +9 lines, -4 lines 0 comments Download

Messages

Total messages: 12 (2 generated)
Sami
Brian, do you think this deserves its own mode in the scheduler?
6 years, 3 months ago (2014-08-29 18:56:44 UTC) #2
brianderson
lgtm once smoothness_takes_priority doesn't mean two different things. https://codereview.chromium.org/522903002/diff/1/cc/trees/thread_proxy.cc File cc/trees/thread_proxy.cc (right): https://codereview.chromium.org/522903002/diff/1/cc/trees/thread_proxy.cc#newcode1362 cc/trees/thread_proxy.cc:1362: impl().scheduler->SetSmoothnessTakesPriority( ...
6 years, 3 months ago (2014-09-03 20:01:58 UTC) #3
brianderson
On 2014/08/29 18:56:44, Sami wrote: > Brian, do you think this deserves its own mode ...
6 years, 3 months ago (2014-09-03 20:04:53 UTC) #4
chromium-reviews
Right, I meant a different name that makes it clear that it is a different ...
6 years, 3 months ago (2014-09-03 20:07:02 UTC) #5
brianderson
I double checked all the places the Scheduler uses smoothness_takes_priority and we'll want to take ...
6 years, 3 months ago (2014-09-03 20:36:24 UTC) #6
Sami
On 2014/09/03 20:36:24, brianderson wrote: > I double checked all the places the Scheduler uses ...
6 years, 3 months ago (2014-09-04 17:42:04 UTC) #7
brianderson
lgtm!
6 years, 3 months ago (2014-09-04 17:54:22 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/skyostil@chromium.org/522903002/20001
6 years, 3 months ago (2014-09-04 18:04:47 UTC) #10
commit-bot: I haz the power
Committed patchset #2 (id:20001) as 13831dba869fcbb2d8a76c4fb231b5507afca71e
6 years, 3 months ago (2014-09-04 23:13:28 UTC) #11
commit-bot: I haz the power
6 years, 3 months ago (2014-09-10 03:33:47 UTC) #12
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/733d7abae5f8665da809ac743d1f18f9230f7bf4
Cr-Commit-Position: refs/heads/master@{#293369}

Powered by Google App Engine
This is Rietveld 408576698