Closed Bug 1676760 Opened 4 years ago Closed 2 years ago

ParentProcessVsyncNotifier and NotifyParentProcessVsync is confusing, should be renamed

Categories

(Core :: Layout, defect)

defect

Tracking

()

RESOLVED FIXED
99 Branch
Tracking Status
firefox-esr91 --- wontfix
firefox97 --- wontfix
firefox98 --- wontfix
firefox99 --- fixed

People

(Reporter: mstange, Assigned: mstange)

References

(Regression)

Details

(Keywords: regression)

Attachments

(8 files)

Apparently some of the refresh driver vsync code that has "ParentProcess" in its name is now used in the content process, as of bug 1641033.

See bug 1641033 comment 11:

(In reply to Olli Pettay [:smaug] from bug 1641033 comment #11)

And don't now also child processes use code which is named like "ParentProcessVsyncNotifier", or am I missing something obvious?

Furthermore, bug 1661881 added this particularly strange hunk of code:

      if (XRE_IsContentProcess()) {
        NotifyParentProcessVsync();
        return true;
      }

This should be cleaned up and the naming should be fixed.

The severity field is not set for this bug.
:boris, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(boris.chiou)
Severity: -- → S3
Flags: needinfo?(boris.chiou)
Has Regression Range: --- → yes
Assignee: nobody → mstange.moz
Status: NEW → ASSIGNED

I think this is ok now? Or are there any remaining non-e10s scenarios that we need to keep working (and would they even break?)?

Depends on D139764

Seems excessive to have a separate class for this, it really just calls a method on a different thread.

Depends on D139765

Even in the parent process, VsyncRefreshDriverTimer uses AddChildRefreshTimer.

Depends on D139767

It is used by far more than just content process refresh driver timers.

Depends on D139768

Pushed by mstange@themasta.com:
https://hg.mozilla.org/integration/autoland/rev/97bde4b52343
Replace VsyncRefreshDriverTimer constructors with named creation methods. r=smaug
https://hg.mozilla.org/integration/autoland/rev/2ded755f08d0
Fix comments on VsyncRefreshDriverTimer member variables. r=smaug
https://hg.mozilla.org/integration/autoland/rev/3f523ecfbd28
Rename NotifyParentProcessVsync to NotifyVsyncOnMainThread and add some comments. r=smaug
https://hg.mozilla.org/integration/autoland/rev/45f91f30f8b4
Always use vsync priority for the ParentProcessVsyncNotifier runnable. r=smaug
https://hg.mozilla.org/integration/autoland/rev/dc08f59ac67a
Remove ParentProcessVsyncNotifier. r=smaug
https://hg.mozilla.org/integration/autoland/rev/cfa85021bc19
Use DataMutex for pending vsync tracking and rename variables so that they don't refer to "parent process" even though they're also used in the content process. r=smaug
https://hg.mozilla.org/integration/autoland/rev/50b8f8c958d3
Remove unused RefreshTimerVsyncDispatcher::SetParentRefreshTimer. r=smaug
https://hg.mozilla.org/integration/autoland/rev/aa17afd2b411
Rename Add/RemoveChildRefreshTimer. r=smaug
Regressions: 1757822
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: