"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "gfx/webrender_bindings/README.webrender" between
firefox-68.0.2.source.tar.xz and firefox-69.0.source.tar.xz

About: Firefox is Mozilla\PKG_DESCR_TTrsquo;s standalone Web browser. Source code.

README.webrender  (firefox-68.0.2.source.tar.xz):README.webrender  (firefox-69.0.source.tar.xz)
To build and run WebRender in Gecko: To build and run WebRender in Gecko:
1. Install Rust if you don't have it already 1. Install Rust if you don't have it already
If you are doing gecko builds already, you should already have Rust as it is a build requirement. If you are doing gecko builds already, you should already have Rust as it is a build requirement.
If not, you can install it using |mach bootstrap| (recommended) or from https ://www.rust-lang.org/ If not, you can install it using |mach bootstrap| (recommended) or from https ://www.rust-lang.org/
Note: If installing manually, use the stable 64-bit release - on Windows make sure to use the MSVC ABI installer. Note: If installing manually, use the stable 64-bit release - on Windows make sure to use the MSVC ABI installer.
Ensure that rustc and cargo are in your $PATH (adding $HOME/.cargo/bin/ shoul d be sufficient) Ensure that rustc and cargo are in your $PATH (adding $HOME/.cargo/bin/ shoul d be sufficient)
2. Build using |mach build|. 2. Build using |mach build|.
You don't need anything special in your mozconfig for local builds; webrender will be built by default. You don't need anything special in your mozconfig for local builds; webrender will be built by default.
If you are building a non-nightly version (e.g. beta) you may need to add |ac _add_options --enable-webrender=build| to your mozconfig.
3. Run with |MOZ_WEBRENDER=1| in your environment. e.g. |MOZ_WEBRENDER=1 ./mach run|. 3. Run with |MOZ_WEBRENDER=1| in your environment. e.g. |MOZ_WEBRENDER=1 ./mach run|.
Alternatively, you can set the gfx.webrender.enabled pref to true (browser re start required). Alternatively, you can set the gfx.webrender.enabled pref to true (browser re start required).
Note that on Linux, acceleration is disabled by default and it needs to be en abled for WebRender to work. Note that on Linux, acceleration is disabled by default and it needs to be en abled for WebRender to work.
On Linux you can enable acceleration by putting |MOZ_ACCELERATED=1| in your e nvironment, or setting layers.acceleration.force-enabled to true in about:config . On Linux you can enable acceleration by putting |MOZ_ACCELERATED=1| in your e nvironment, or setting layers.acceleration.force-enabled to true in about:config .
4. Verify WebRender is enabled. You can do this by going to about:support and ch ecking the "Compositing" line in the Graphics section. It should say "WebRender" . 4. Verify WebRender is enabled. You can do this by going to about:support and ch ecking the "Compositing" line in the Graphics section. It should say "WebRender" .
There should also be a WebRender section under "Decision Log" in about:suppor t, which will provide some more detail on what caused it to be enabled/disabled. There should also be a WebRender section under "Decision Log" in about:suppor t, which will provide some more detail on what caused it to be enabled/disabled.
When making changes: When making changes:
- Make the changes you want. - Make the changes you want.
- Run |mach build| or |mach build binaries| as desired. - Run |mach build| or |mach build binaries| as desired.
 End of changes. 1 change blocks. 
1 lines changed or deleted 0 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)