Closed Bug 1759581 Opened 2 years ago Closed 2 years ago

Simplify RefreshDriverVsyncObserver logic after bug 1755006

Categories

(Core :: Layout, task)

task

Tracking

()

RESOLVED FIXED
101 Branch
Tracking Status
firefox101 --- fixed

People

(Reporter: mstange, Assigned: mstange)

References

(Blocks 1 open bug)

Details

Attachments

(7 files, 8 obsolete files)

48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
No description provided.

Depends on D141010

Depends on D141012

Depends on D141015

tickStart is later than aVsyncTimeStamp if the tick was delayed by other work in the event loop.

I think this might have been what was intended. It makes the math simpler to reason about, at least.

Depends on D141016

Attached file WIP: Bug 1759581 - Simplify math. (obsolete) —

Depends on D141017

Depends on D141018

Attachment #9267713 - Attachment description: WIP: Bug 1759581 - Return early if RefreshDriverVsyncObserver is notified after its timer has gone away. → Bug 1759581 - Return early if RefreshDriverVsyncObserver is notified after its timer has gone away. r=smaug
Attachment #9267714 - Attachment description: WIP: Bug 1759581 - Move some code around. → Bug 1759581 - Move some code around. r=smaug
Attachment #9267715 - Attachment description: WIP: Bug 1759581 - Leave mLastTickStart/End untouched until the end of the function, and also reuse the tickStart timestamp instead of calling TimeStamp::Now() another time. → Bug 1759581 - Leave mLastTickStart/End untouched until the end of the function, and also reuse the tickStart timestamp instead of calling TimeStamp::Now() another time. r=smaug
Attachment #9267716 - Attachment description: WIP: Bug 1759581 - Move more code around. → Bug 1759581 - Move more code around. r=smaug
Attachment #9267717 - Attachment description: WIP: Bug 1759581 - Use different timeForOutsideTick variables in the different paths. → Bug 1759581 - Use different timeForOutsideTick variables in the different paths. r=smaug
Attachment #9267719 - Attachment description: WIP: Bug 1759581 - Leave rate as a TimeDuration and don't convert it to milliseconds. → Bug 1759581 - Leave rate as a TimeDuration and don't convert it to milliseconds. r=smaug
Attachment #9267720 - Attachment description: WIP: Bug 1759581 - Use clamped(). → Bug 1759581 - Use clamped(). r=smaug
Attached file Bug 1759581 - Simplify math. r=smaug (obsolete) —

Depends on D142731

Attachment #9267721 - Attachment is obsolete: true
Attachment #9267722 - Attachment is obsolete: true
Attachment #9267723 - Attachment is obsolete: true
Attachment #9267724 - Attachment is obsolete: true
Attachment #9267715 - Attachment is obsolete: true
Attachment #9270504 - Attachment is obsolete: true
Attachment #9270505 - Attachment is obsolete: true
Attachment #9270506 - Attachment is obsolete: true
Blocks: 1759232
Blocks: 1765400
Pushed by mstange@themasta.com:
https://hg.mozilla.org/integration/autoland/rev/d47889be4532
Return early if RefreshDriverVsyncObserver is notified after its timer has gone away. r=smaug
https://hg.mozilla.org/integration/autoland/rev/f0e39c532cc5
Move some code around. r=smaug
https://hg.mozilla.org/integration/autoland/rev/ef57a9573466
Introduce more TimeStamp variables and make the nested tick handling more explicit. r=smaug
https://hg.mozilla.org/integration/autoland/rev/7d8d1de620b9
Move more code around. r=smaug
https://hg.mozilla.org/integration/autoland/rev/fe2f9ffe44bd
Use different timeForOutsideTick variables in the different paths. r=smaug
https://hg.mozilla.org/integration/autoland/rev/4e9b215ae20a
Leave rate as a TimeDuration and don't convert it to milliseconds. r=smaug
https://hg.mozilla.org/integration/autoland/rev/77eec1011469
Use clamped(). r=smaug
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: