gecko-dev/gfx/webrender_bindings
Simon Giesecke d1c992db5d Bug 1677284 - Remove unused includes of Variant.h. r=andi
Differential Revision: https://phabricator.services.mozilla.com/D97076
2020-11-23 15:49:20 +00:00
..
src Bug 1678493 - Pass the SwCompositor clip rect into the inner Composite code rather than intersecting if beforehand. r=lsalzman 2020-11-20 07:24:20 +00:00
Cargo.lock
Cargo.toml Bug 1661528 - Update gleam to 0.13.1. r=kvark 2020-11-07 00:30:09 +00:00
DCLayerTree.cpp Bug 1666055 - Remove RenderTextureHostOGL. r=lsalzman 2020-10-14 07:58:18 +00:00
DCLayerTree.h Bug 1677284 - Remove unused includes of Variant.h. r=andi 2020-11-23 15:49:20 +00:00
Moz2DImageRenderer.cpp
README.webrender
RenderAndroidHardwareBufferTextureHost.cpp Bug 1666055 - Remove RenderTextureHostOGL. r=lsalzman 2020-10-14 07:58:18 +00:00
RenderAndroidHardwareBufferTextureHost.h Bug 1666055 - Remove RenderTextureHostOGL. r=lsalzman 2020-10-14 07:58:18 +00:00
RenderAndroidSurfaceTextureHost.cpp Bug 1666055 - Remove RenderTextureHostOGL. r=lsalzman 2020-10-14 07:58:18 +00:00
RenderAndroidSurfaceTextureHost.h Bug 1666055 - Remove RenderTextureHostOGL. r=lsalzman 2020-10-14 07:58:18 +00:00
RenderBufferTextureHost.cpp Bug 1595994 - P1D. Properly serialize display size when sending image over IPC. r=mattwoodrow 2020-10-20 23:30:04 +00:00
RenderBufferTextureHost.h
RenderBufferTextureHostSWGL.cpp Bug 1673983 - Add RenderTextureHostSWGL support to D3D11 RenderTextureHosts. r=lsalzman 2020-11-06 00:01:36 +00:00
RenderBufferTextureHostSWGL.h Bug 1673983 - Add RenderTextureHostSWGL support to D3D11 RenderTextureHosts. r=lsalzman 2020-11-06 00:01:36 +00:00
RenderCompositor.cpp Bug 1673983 - Add D3D11 RenderCompositor for SWGL. r=lsalzman 2020-11-06 00:00:47 +00:00
RenderCompositor.h Bug 1673983 - Add RenderTextureHostSWGL support to D3D11 RenderTextureHosts. r=lsalzman 2020-11-06 00:01:36 +00:00
RenderCompositorANGLE.cpp Bug 1676719 - Allow WebRender ANGLE in parent process for Nightly. r=jrmuizel 2020-11-12 01:31:19 +00:00
RenderCompositorANGLE.h Bug 1674878 - Expose more detailed WR backend information to TextureFactoryIdentifier. r=jrmuizel 2020-11-03 18:24:43 +00:00
RenderCompositorD3D11SWGL.cpp Bug 1677236 - don't require padding for SWGL FBO textures. r=jrmuizel 2020-11-16 16:43:23 +00:00
RenderCompositorD3D11SWGL.h Bug 1676332 - Use D3D11 staging textures within RenderCompositorD3D11SWGL for faster uploads. r=lsalzman 2020-11-12 01:21:41 +00:00
RenderCompositorEGL.cpp Bug 1677165 - Add support for partial present to GLX. r=kvark,jgilbert 2020-11-13 18:41:41 +00:00
RenderCompositorEGL.h Bug 1670014 - Delay querying buffer age until it is actually needed. r=sotaro 2020-10-09 08:25:43 +00:00
RenderCompositorNative.cpp Bug 1675409 - Removed now-unused ProfilerMarkerPayload and all dependencies - r=gregtatum,necko-reviewers 2020-11-18 21:56:57 +00:00
RenderCompositorNative.h Bug 1674878 - Expose more detailed WR backend information to TextureFactoryIdentifier. r=jrmuizel 2020-11-03 18:24:43 +00:00
RenderCompositorOGL.cpp Bug 1677165 - Add support for partial present to GLX. r=kvark,jgilbert 2020-11-13 18:41:41 +00:00
RenderCompositorOGL.h Bug 1670014 - Delay querying buffer age until it is actually needed. r=sotaro 2020-10-09 08:25:43 +00:00
RenderCompositorSWGL.cpp Bug 1674029 - Only commit the dirty rects in RenderCompositorSWGL. r=lsalzman 2020-11-10 06:07:06 +00:00
RenderCompositorSWGL.h Bug 1678493 - Intersect the dirty rect with the compositor surface clip rect in SwCompositor. r=lsalzman 2020-11-20 07:25:31 +00:00
RenderD3D11TextureHost.cpp Bug 1673983 - Support using D3D11 textures as external compositor surfaces with D3D11 compositor. r=lsalzman 2020-11-06 00:01:54 +00:00
RenderD3D11TextureHost.h Bug 1673983 - Support using D3D11 textures as external compositor surfaces with D3D11 compositor. r=lsalzman 2020-11-06 00:01:54 +00:00
RenderDMABUFTextureHost.cpp Bug 1666055 - Remove RenderTextureHostOGL. r=lsalzman 2020-10-14 07:58:18 +00:00
RenderDMABUFTextureHost.h Bug 1666055 - Remove RenderTextureHostOGL. r=lsalzman 2020-10-14 07:58:18 +00:00
RenderEGLImageTextureHost.cpp Bug 1666055 - Remove RenderTextureHostOGL. r=lsalzman 2020-10-14 07:58:18 +00:00
RenderEGLImageTextureHost.h Bug 1666055 - Remove RenderTextureHostOGL. r=lsalzman 2020-10-14 07:58:18 +00:00
RenderExternalTextureHost.cpp
RenderExternalTextureHost.h
RenderMacIOSurfaceTextureHost.cpp Bug 1673983 - Add RenderTextureHostSWGL support to D3D11 RenderTextureHosts. r=lsalzman 2020-11-06 00:01:36 +00:00
RenderMacIOSurfaceTextureHost.h Bug 1673983 - Add RenderTextureHostSWGL support to D3D11 RenderTextureHosts. r=lsalzman 2020-11-06 00:01:36 +00:00
RenderSharedSurfaceTextureHost.cpp
RenderSharedSurfaceTextureHost.h
RenderSharedSurfaceTextureHostSWGL.cpp Bug 1673983 - Add RenderTextureHostSWGL support to D3D11 RenderTextureHosts. r=lsalzman 2020-11-06 00:01:36 +00:00
RenderSharedSurfaceTextureHostSWGL.h Bug 1673983 - Add RenderTextureHostSWGL support to D3D11 RenderTextureHosts. r=lsalzman 2020-11-06 00:01:36 +00:00
RenderTextureHost.cpp Bug 1673983 - Add RenderTextureHostSWGL support to D3D11 RenderTextureHosts. r=lsalzman 2020-11-06 00:01:36 +00:00
RenderTextureHost.h Bug 1673983 - Support using D3D11 textures as external compositor surfaces with D3D11 compositor. r=lsalzman 2020-11-06 00:01:54 +00:00
RenderTextureHostSWGL.cpp Bug 1673983 - Add RenderTextureHostSWGL support to D3D11 RenderTextureHosts. r=lsalzman 2020-11-06 00:01:36 +00:00
RenderTextureHostSWGL.h Bug 1673983 - Add RenderTextureHostSWGL support to D3D11 RenderTextureHosts. r=lsalzman 2020-11-06 00:01:36 +00:00
RenderTextureHostWrapper.cpp Bug 1673983 - Support using D3D11 textures as external compositor surfaces with D3D11 compositor. r=lsalzman 2020-11-06 00:01:54 +00:00
RenderTextureHostWrapper.h Bug 1673983 - Support using D3D11 textures as external compositor surfaces with D3D11 compositor. r=lsalzman 2020-11-06 00:01:54 +00:00
RenderThread.cpp Bug 1671289 - Improve WebRender's integrated profiler. r=gw 2020-10-20 08:54:04 +00:00
RenderThread.h Bug 1671289 - Improve WebRender's integrated profiler. r=gw 2020-10-20 08:54:04 +00:00
RendererOGL.cpp Bug 1673983 - Add RenderTextureHostSWGL support to D3D11 RenderTextureHosts. r=lsalzman 2020-11-06 00:01:36 +00:00
RendererOGL.h Bug 1673983 - Add RenderTextureHostSWGL support to D3D11 RenderTextureHosts. r=lsalzman 2020-11-06 00:01:36 +00:00
RendererScreenshotGrabber.cpp
RendererScreenshotGrabber.h
WebRenderAPI.cpp Bug 1674878 - Expose more detailed WR backend information to TextureFactoryIdentifier. r=jrmuizel 2020-11-03 18:24:43 +00:00
WebRenderAPI.h Bug 1674878 - Expose more detailed WR backend information to TextureFactoryIdentifier. r=jrmuizel 2020-11-03 18:24:43 +00:00
WebRenderTypes.cpp
WebRenderTypes.h Bug 1677284 - Remove unused includes of Variant.h. r=andi 2020-11-23 15:49:20 +00:00
cbindgen.toml Bug 1668921 - Update cbindgen version and generate ostream serializers for WR structs. r=emilio 2020-10-08 09:24:36 +00:00
moz.build Bug 1673983 - Add D3D11 RenderCompositor for SWGL. r=lsalzman 2020-11-06 00:00:47 +00:00
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