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

Issue 2868783006: Re-add delay to PostTask in StartScrollbarPaintTimer() (Closed)

Created:
3 years, 7 months ago by nhiroki
Modified:
3 years, 7 months ago
Reviewers:
haraken, bokan, skobes, tzik
CC:
chromium-reviews, shans, rjwright, blink-reviews-animation_chromium.org, mac-reviews_chromium.org, darktears, blink-reviews, kinuko+watch, Eric Willigers
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Re-add delay to PostTask in StartScrollbarPaintTimer() My previous CL removed 0.1 ms delay from PostTask in ScrollAnimatorMac::startScrollbarPaintTimer[1] because new PostTask interface didn't support micro sec delay (type of |delay| was changed from "double" to "long long"). This seems to give tasks more chances to run before task cancellation and probably contention happens. This CL re-adds 1 ms delay (not 0.1 ms because the current PostTask doesn't support micro sec delay as mentioned above) and confirmed it improved the scroll animation in the demo page (see the issue). [1] https://codereview.chromium.org/2514733002/ BUG=713669 Review-Url: https://codereview.chromium.org/2868783006 Cr-Commit-Position: refs/heads/master@{#470823} Committed: https://chromium.googlesource.com/chromium/src/+/570b67158dabf2d9f10bb12ac68762e973ed63ad

Patch Set 1 #

Patch Set 2 : add comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -3 lines) Patch
M third_party/WebKit/Source/platform/mac/ScrollAnimatorMac.mm View 1 1 chunk +8 lines, -3 lines 0 comments Download

Messages

Total messages: 34 (25 generated)
nhiroki
Hi, could you review this? +tzik@ for PostTask +bokan@,skobes@ for scrolling Thanks.
3 years, 7 months ago (2017-05-10 06:47:29 UTC) #16
tzik
lgtm
3 years, 7 months ago (2017-05-10 06:56:15 UTC) #17
bokan
Your commit self-references this CL in your [2] link. Otherwise lgtm
3 years, 7 months ago (2017-05-10 13:26:11 UTC) #22
nhiroki
Thank you. On 2017/05/10 13:26:11, bokan wrote: > Your commit self-references this CL in your ...
3 years, 7 months ago (2017-05-11 04:51:41 UTC) #24
nhiroki
+haraken@, can you review this? Thanks.
3 years, 7 months ago (2017-05-11 04:52:13 UTC) #26
nhiroki
FYI: tzik@'s CL[2] will enable to post a task with a delay under 1 ms, ...
3 years, 7 months ago (2017-05-11 04:55:38 UTC) #27
haraken
LGTM
3 years, 7 months ago (2017-05-11 05:25:33 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2868783006/60001
3 years, 7 months ago (2017-05-11 05:28:54 UTC) #31
commit-bot: I haz the power
3 years, 7 months ago (2017-05-11 05:36:36 UTC) #34
Message was sent while issue was closed.
Committed patchset #2 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/570b67158dabf2d9f10bb12ac687...

Powered by Google App Engine
This is Rietveld 408576698