gecko-dev/gfx/webrender_bindings
stransky 0c7400ee46 Bug 1674473 [Linux] SW-WR Clear background when painting popup windows, r=lsalzman
Clear alpha from buffer before painting transparent windows by SW Webrender to avoid rendering artifacts.

Differential Revision: https://phabricator.services.mozilla.com/D102189
2021-01-20 21:11:48 +00:00
..
src Bug 1617369 - Reformat recent rust changes with rustfmt r=emilio 2021-01-16 15:36:39 +00:00
Cargo.toml Bug 1683966. Add some more objc autorelease pools. r=mstange 2020-12-23 04:02:43 +00:00
DCLayerTree.cpp Bug 1683247 - Stop to create shared GL and WebRenderShaders in RenderDXGITextureHost::GetD3D11Texture2D() r=nical 2020-12-18 22:38:22 +00:00
DCLayerTree.h
Moz2DImageRenderer.cpp
README.webrender
RenderAndroidHardwareBufferTextureHost.cpp Bug 1519636 - Reformat recent changes to the Google coding style r=andi 2021-01-06 17:17:23 +00:00
RenderAndroidHardwareBufferTextureHost.h Bug 1519636 - Reformat recent changes to the Google coding style r=andi 2021-01-06 17:17:23 +00:00
RenderAndroidSurfaceTextureHost.cpp
RenderAndroidSurfaceTextureHost.h
RenderBufferTextureHost.cpp
RenderBufferTextureHost.h
RenderBufferTextureHostSWGL.cpp
RenderBufferTextureHostSWGL.h
RenderCompositor.cpp Bug 1679215 - add support for StartCompositing hook to RenderCompositor. r=mattwoodrow 2021-01-10 23:26:23 +00:00
RenderCompositor.h Bug 1679215 - add support for StartCompositing hook to RenderCompositor. r=mattwoodrow 2021-01-10 23:26:23 +00:00
RenderCompositorANGLE.cpp Bug 1684412 - Pass only valid rests to Present1() r=nical 2021-01-20 22:28:50 +00:00
RenderCompositorANGLE.h
RenderCompositorD3D11SWGL.cpp Bug 1685437 - Add multiple texture methods to RenderCompositorD3D11SWGL. r=lsalzman 2021-01-10 22:49:39 +00:00
RenderCompositorD3D11SWGL.h Bug 1685437 - Add multiple texture methods to RenderCompositorD3D11SWGL. r=lsalzman 2021-01-10 22:49:39 +00:00
RenderCompositorEGL.cpp Bug 1685356 - Do not try to create EGLSurface when ANativeWindow size is too big r=nical 2021-01-08 10:59:17 +00:00
RenderCompositorEGL.h Bug 1685241 - Disable WebRender rendering when RenderCompositorEGL is paused r=nical 2021-01-07 10:23:30 +00:00
RenderCompositorNative.cpp Bug 1687265 - clear out old SWGL framebuffer after frame ends. r=jrmuizel 2021-01-21 00:42:11 +00:00
RenderCompositorNative.h
RenderCompositorOGL.cpp Bug 1683551 - Make `gfx` buildable outside of `unified-build` environment. r=sg,jgilbert 2021-01-04 14:20:17 +00:00
RenderCompositorOGL.h
RenderCompositorRecordedFrame.h
RenderCompositorSWGL.cpp Bug 1674473 [Linux] SW-WR Clear background when painting popup windows, r=lsalzman 2021-01-20 21:11:48 +00:00
RenderCompositorSWGL.h Bug 1679215 - limit SWGL compositing to dirty region. r=mattwoodrow 2021-01-10 23:27:01 +00:00
RenderD3D11TextureHost.cpp Bug 1683606 - Avoid crash by using ID3D11Texture2D that uses obsoleted ID3D11Device r=mattwoodrow 2020-12-21 23:40:14 +00:00
RenderD3D11TextureHost.h Bug 1683247 - Stop to create shared GL and WebRenderShaders in RenderDXGITextureHost::GetD3D11Texture2D() r=nical 2020-12-18 22:38:22 +00:00
RenderDMABUFTextureHost.cpp
RenderDMABUFTextureHost.h Bug 1519636 - Reformat recent changes to the Google coding style r=andi 2021-01-06 17:17:23 +00:00
RenderEGLImageTextureHost.cpp
RenderEGLImageTextureHost.h Bug 1519636 - Reformat recent changes to the Google coding style r=andi 2021-01-06 17:17:23 +00:00
RenderExternalTextureHost.cpp Bug 1683551 - Make `gfx` buildable outside of `unified-build` environment. r=sg,jgilbert 2021-01-04 14:20:17 +00:00
RenderExternalTextureHost.h Bug 1519636 - Reformat recent changes to the Google coding style r=andi 2021-01-06 17:17:23 +00:00
RenderMacIOSurfaceTextureHost.cpp
RenderMacIOSurfaceTextureHost.h
RenderSharedSurfaceTextureHost.cpp
RenderSharedSurfaceTextureHost.h Bug 1519636 - Reformat recent changes to the Google coding style r=andi 2021-01-06 17:17:23 +00:00
RenderSharedSurfaceTextureHostSWGL.cpp
RenderSharedSurfaceTextureHostSWGL.h
RenderTextureHost.cpp
RenderTextureHost.h
RenderTextureHostSWGL.cpp
RenderTextureHostSWGL.h Bug 1519636 - Reformat recent changes to the Google coding style r=andi 2021-01-06 17:17:23 +00:00
RenderTextureHostWrapper.cpp
RenderTextureHostWrapper.h
RenderThread.cpp Bug 1685241 - Disable WebRender rendering when RenderCompositorEGL is paused r=nical 2021-01-07 10:23:30 +00:00
RenderThread.h
RendererOGL.cpp Bug 1683217 - Require non-zero window size for profiler screenshots in WebRender r=mstange 2021-01-14 22:18:54 +00:00
RendererOGL.h Bug 1685241 - Disable WebRender rendering when RenderCompositorEGL is paused r=nical 2021-01-07 10:23:30 +00:00
RendererScreenshotGrabber.cpp
RendererScreenshotGrabber.h
WebRenderAPI.cpp Bug 1679215 - add support for StartCompositing hook to RenderCompositor. r=mattwoodrow 2021-01-10 23:26:23 +00:00
WebRenderAPI.h Bug 1624264 - Use different texture cache sizes for popup windows. r=jrmuizel 2020-12-18 09:27:19 +00:00
WebRenderTypes.cpp
WebRenderTypes.h
cbindgen.toml
moz.build
rustfmt.toml
webrender_ffi.h

README.webrender

To build and run WebRender in Gecko:
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 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.
   Ensure that rustc and cargo are in your $PATH (adding $HOME/.cargo/bin/ should be sufficient)
2. Build using |mach build|.
   You don't need anything special in your mozconfig for local builds; webrender will be built by default.
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 restart required).
   Note that on Linux, acceleration is disabled by default and it needs to be enabled for WebRender to work.
   On Linux you can enable acceleration by putting |MOZ_ACCELERATED=1| in your environment, 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 checking the "Compositing" line in the Graphics section. It should say "WebRender".
   There should also be a WebRender section under "Decision Log" in about:support, which will provide some more detail on what caused it to be enabled/disabled.

When making changes:
    - Make the changes you want.
    - Run |mach build| or |mach build binaries| as desired.

For a debug webrender build:
    Use a debug mozconfig (ac_add_options --enable-debug)
    You can also use an opt build but make webrender less optimized by putting opt-level=0 in the [profile.release] section of your toolkit/library/rust/Cargo.toml file
    See also https://groups.google.com/forum/#!topic/mozilla.dev.servo/MbeMcqqO1fs