gecko-dev/gfx/webrender_bindings
Lee Salzman 59bb247451 Bug 1690655 - Occlude SwCompositor surfaces. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D103949
2021-02-04 03:43:27 +00:00
..
src Bug 1690655 - Occlude SwCompositor surfaces. r=jrmuizel 2021-02-04 03:43:27 +00:00
Cargo.toml Bug 1687522 - Use a 'gecko' feature instead of having a ThreadListener trait. r=kvark 2021-02-03 16:19:20 +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 Bug 1660470 - Add missing include directives/forward declarations. r=nika 2020-11-23 16:21:38 +00:00
Moz2DImageRenderer.cpp Bug 1619165 - Reformat recent changes to the Google coding style r=andi 2020-04-25 09:40:08 +00:00
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 Bug 1679578. Memory report RenderTextureHosts in mRenderTextures. r=mattwoodrow 2020-12-15 15:37:11 +00:00
RenderAndroidSurfaceTextureHost.h Bug 1679578. Memory report RenderTextureHosts in mRenderTextures. r=mattwoodrow 2020-12-15 15:37:11 +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 Bug 1679578. Memory report RenderTextureHosts in mRenderTextures. r=mattwoodrow 2020-12-15 15:37:11 +00:00
RenderBufferTextureHostSWGL.cpp Bug 1675876 - Make RenderBufferTextureHostSWGL::RenderBufferTextureHostSWGL() fallible r=mattwoodrow 2021-02-01 03:06:00 +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 1687124 - Make SwCompositor compute the set of opaque rectangles, and forward this to the RenderCompositor. r=gw,lsalzman 2021-01-27 03:17:16 +00:00
RenderCompositor.h Bug 1687124 - Make SwCompositor compute the set of opaque rectangles, and forward this to the RenderCompositor. r=gw,lsalzman 2021-01-27 03:17:16 +00:00
RenderCompositorANGLE.cpp Bug 1687889 - Add more error handling of FLIP_SEQUENTIAL r=nical 2021-01-25 22:11:51 +00:00
RenderCompositorANGLE.h Bug 1632698 - Better handle device resets when we don't have a GPU process. r=sotaro,kvark,nical 2020-12-07 20:36:11 +00:00
RenderCompositorD3D11SWGL.cpp Bug 1682483 - Make RenderCompositorD3D11SWGL::AttachExternalImage() fallible r=mattwoodrow 2021-02-01 03:06:18 +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 Bug 1674878 - Expose more detailed WR backend information to TextureFactoryIdentifier. r=jrmuizel 2020-11-03 18:24:43 +00:00
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 Bug 1670014 - Delay querying buffer age until it is actually needed. r=sotaro 2020-10-09 08:25:43 +00:00
RenderCompositorRecordedFrame.h Bug 1681869 - Add screenshots and frame recording support to RenderCompositorD3D11SWGL r=mstange 2020-12-11 21:41:45 +00:00
RenderCompositorSWGL.cpp Bug 1689245 - replace CompositorWidget::ClearBeforePaint with GetTransparentRegion. r=mattwoodrow CLOSED TREE 2021-01-28 09:12:40 +00:00
RenderCompositorSWGL.h Bug 1689245 - replace CompositorWidget::ClearBeforePaint with GetTransparentRegion. r=mattwoodrow CLOSED TREE 2021-01-28 09:12:40 +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 Bug 1681671 - Ensure we clear cached DMABuf textures during an NVIDIA video memory device reset. r=sotaro 2020-12-14 00:26:18 +00:00
RenderDMABUFTextureHost.h Bug 1519636 - Reformat recent changes to the Google coding style r=andi 2021-01-06 17:17:23 +00:00
RenderEGLImageTextureHost.cpp Bug 1666055 - Remove RenderTextureHostOGL. r=lsalzman 2020-10-14 07:58:18 +00:00
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 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 Bug 1679578. Memory report RenderTextureHosts in mRenderTextures. r=mattwoodrow 2020-12-15 15:37:11 +00:00
RenderSharedSurfaceTextureHost.h Bug 1519636 - Reformat recent changes to the Google coding style r=andi 2021-01-06 17:17:23 +00:00
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 1679578. Memory report RenderTextureHosts in mRenderTextures. r=mattwoodrow 2020-12-15 15:37:11 +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 1519636 - Reformat recent changes to the Google coding style r=andi 2021-01-06 17:17:23 +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 1689203 - Allow fallback from WebRender to Software WebRender. r=jrmuizel 2021-02-01 23:36:36 +00:00
RenderThread.h Bug 1676862 - ensure wr_notifier_wake_up passes through UpdateAndRender. r=mstange 2020-12-16 03:47:08 +00:00
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 Bug 1660470 - Add missing include directives/forward declarations. r=nika 2020-11-23 16:21:38 +00:00
RendererScreenshotGrabber.h Bug 1627482 - Fix non-unified build errors in gfx/webrender_bindings. r=tnikkel 2020-04-05 03:49:51 +00:00
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 Bug 1622360 - Remove the RenderRoot enum entirely, along with the feature docs. r=jrmuizel 2020-05-15 00:07:01 +00:00
WebRenderTypes.h Bug 1632698 - Better handle device resets when we don't have a GPU process. r=sotaro,kvark,nical 2020-12-07 20:36:11 +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 Bug 1677929 - Stop passing aEpochsBeingRendered to WebRender's APZ sampling callback, because it's now unused. r=gw 2020-12-09 03:38:31 +00:00

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