forked from Floorp-Projects/Floorp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1765399 - Invert the relationship between VsyncSource and VsyncDi…
…spatcher: The VsyncDispatcher now owns the source. r=smaug This makes vsync source swapping much more natural. The VsyncSource now only has a reference to the VsyncDispatcher for the duration during which the dispatcher is listening to vsync. Whenever the dispatcher is not listening to vsync, the source has no reference to the dispatcher and there is no cycle. This patch also adds the ability to register multiple dispatchers with the same source. This ability is not used yet; a vsync source always has zero or one dispatchers at the moment. It is in preparation for a future patch where there will be one dispatcher per widget. Furthermore, nothing uses gfxPlatform::GetGlobalVsync anymore, so it is removed. Differential Revision: https://phabricator.services.mozilla.com/D144375
- Loading branch information
Showing
8 changed files
with
154 additions
and
114 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.