gecko-dev/gfx/webrender_bindings
sotaro 8ba200bf20 Bug 1682753 - Add device reset handling to RenderCompositorD3D11SWGL r=aosmond
Implementation is borrowed from RenderCompositorANGLE::IsContextLost().

Differential Revision: https://phabricator.services.mozilla.com/D100376
2020-12-24 16:35:56 +00:00
..
src Bug 1683966. Add some more objc autorelease pools. r=mstange 2020-12-23 04:02:43 +00:00
Cargo.lock Bug 1661961 - Upgrade cstr to 0.2.x. r=emilio 2020-12-07 08:01:04 +00:00
Cargo.toml Bug 1683966. Add some more objc autorelease pools. r=mstange 2020-12-23 04:02:43 +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
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
moz.build Bug 1673983 - Add D3D11 RenderCompositor for SWGL. r=lsalzman 2020-11-06 00:00:47 +00:00
README.webrender
RenderAndroidHardwareBufferTextureHost.cpp Bug 1679578. Memory report RenderTextureHosts in mRenderTextures. r=mattwoodrow 2020-12-15 15:37:11 +00:00
RenderAndroidHardwareBufferTextureHost.h Bug 1679578. Memory report RenderTextureHosts in mRenderTextures. r=mattwoodrow 2020-12-15 15:37:11 +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 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 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
RenderCompositor.h Bug 1681869 - Add screenshots and frame recording support to RenderCompositorD3D11SWGL r=mstange 2020-12-11 21:41:45 +00:00
RenderCompositorANGLE.cpp Bug 1681756 - Make RenderCompositorANGLE::GetBufferSize() to be positive with native compositor r=mattwoodrow 2020-12-21 23:40:59 +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 1682753 - Add device reset handling to RenderCompositorD3D11SWGL r=aosmond 2020-12-24 16:35:56 +00:00
RenderCompositorD3D11SWGL.h Bug 1682753 - Add device reset handling to RenderCompositorD3D11SWGL r=aosmond 2020-12-24 16:35:56 +00:00
RenderCompositorEGL.cpp Bug 1682230 - Don't call eglSetDamageRegion if buffer age is disabled. r=aosmond 2020-12-14 11:40:53 +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 1681869 - Add screenshots and frame recording support to RenderCompositorD3D11SWGL r=mstange 2020-12-11 21:41:45 +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
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 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 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 1679578. Memory report RenderTextureHosts in mRenderTextures. r=mattwoodrow 2020-12-15 15:37:11 +00:00
RenderEGLImageTextureHost.cpp Bug 1666055 - Remove RenderTextureHostOGL. r=lsalzman 2020-10-14 07:58:18 +00:00
RenderEGLImageTextureHost.h Bug 1679578. Memory report RenderTextureHosts in mRenderTextures. r=mattwoodrow 2020-12-15 15:37:11 +00:00
RendererOGL.cpp Bug 1682876 - Better handle Linux NVIDIA device resets, and unflushed device resets. r=sotaro,jgilbert 2020-12-18 12:52:00 +00:00
RendererOGL.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
RendererScreenshotGrabber.cpp Bug 1660470 - Add missing include directives/forward declarations. r=nika 2020-11-23 16:21:38 +00:00
RendererScreenshotGrabber.h
RenderExternalTextureHost.cpp Bug 1658113 - Set the surface format based on YCbCrDescriptor color depth r=jya 2020-08-11 01:13:30 +00:00
RenderExternalTextureHost.h Bug 1679578. Memory report RenderTextureHosts in mRenderTextures. r=mattwoodrow 2020-12-15 15:37:11 +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 1679578. Memory report RenderTextureHosts in mRenderTextures. r=mattwoodrow 2020-12-15 15:37:11 +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 1679578. Memory report RenderTextureHosts in mRenderTextures. r=mattwoodrow 2020-12-15 15:37:11 +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 1682876 - Better handle Linux NVIDIA device resets, and unflushed device resets. r=sotaro,jgilbert 2020-12-18 12:52:00 +00:00
RenderThread.h Bug 1676862 - ensure wr_notifier_wake_up passes through UpdateAndRender. r=mstange 2020-12-16 03:47:08 +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
WebRenderAPI.cpp Bug 1683248 - Stop to pass WebRenderShaders to software WebRender r=nical 2020-12-18 22:38:56 +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 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

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