Closed Bug 1765400 Opened 3 years ago Closed 3 years ago

Some more RefreshDriverVsyncObserver cleanup

Categories

(Core :: Layout, task)

task

Tracking

()

RESOLVED FIXED
102 Branch
Tracking Status
firefox102 --- fixed

People

(Reporter: mstange, Assigned: mstange)

References

Details

Attachments

(3 files)

No description provided.

Nobody was checking the return value anywhere.

Before this patch, a lot of the RefreshDriver vsync timer functionality was in
RefreshDriverVsyncObserver, which is a nested class inside of VsyncRefreshDriverTimer.
This nesting is a bit unwieldy and it sometimes makes it non-obvious whether to
make changes to the timer or to the observer inside the timer.

RefreshDriverVsyncObserver was originally just created to work around lifetime
and threading issues. This patch returns it to just that purpose. All the actual
functionality moves into the timer itself.

Depends on D144360

Pushed by mstange@themasta.com: https://hg.mozilla.org/integration/autoland/rev/b5f3c63ebc4d Make NotifyVsync return void. r=smaug https://hg.mozilla.org/integration/autoland/rev/ef385ba169cd Merge most functionality of RefreshDriverVsyncObserver into VsyncRefreshDriverTimer. r=smaug https://hg.mozilla.org/integration/autoland/rev/f5d3a6c92036 Keep the strong reference to VsyncRefreshDriverTimer in the caller. r=smaug
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 102 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: