зеркало из https://github.com/mozilla/gecko-dev.git
0752cfb5cb
Right now adding a dynamic pref for webrender involves plumbing in gfxPlatform, gfxVars, CompositBridgeParent, WebRenderBridgeParent, WebRenderAPI, the bindings, and then messaging the pref change to the right thread in WebRender. That's quite a bit time consuming for something we tend to do for multiple things. We already have a pretty good system for boolean debug prefs where the pref only needs to be listed in gfxPlatform and in the DebugPref enum of webrender_api/lib.rs, which has led us to use it for non-debug purposes. This patch adds a system similar to the DebugFlags with values passed in a bitfield to be able to use gfxVars. In WebRender the parameters are key-value pairs which flow through the pipeline so that any component can react to them. A followup will add integer parameters. The patch also moves a few prefs to this system and adds a pref to use PBO uploads. Differential Revision: https://phabricator.services.mozilla.com/D126100 |
||
---|---|---|
.. | ||
gfxConfig.cpp | ||
gfxConfig.h | ||
gfxConfigManager.cpp | ||
gfxConfigManager.h | ||
gfxFallback.h | ||
gfxFeature.cpp | ||
gfxFeature.h | ||
gfxVarReceiver.h | ||
gfxVars.cpp | ||
gfxVars.h | ||
moz.build |