mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 23:31:56 +00:00
4517f22757
The layout module is a little weird. It's described as being loadable in the GPU process, but very few of the contracts and CIDs it contains are also marked as such. In fact, the sole reason the layout module is marked as being loadable in the GPU process is so that the power manager service can be registered; everything else is inconsequential. This setup also means that the initializer for the layout module has to specifically check whether it's running in the GPU process (or several other processes...), so we don't try to spin up a bunch of stuff we don't need, like xpconnect and similar. This setup is silly: we should have a module solely for the power manager's use and that module can be loaded in the GPU process. Then the layout module can go back to being an ordinary module, and we don't have to play games in its initialization method. |
||
---|---|---|
.. | ||
moz.build | ||
nsIDOMWakeLockListener.idl | ||
nsIPowerManagerService.idl | ||
nsIWakeLock.idl | ||
PowerManagerService.cpp | ||
PowerManagerService.h | ||
WakeLock.cpp | ||
WakeLock.h |