gecko-dev/gfx/webrender_bindings
Dorel Luca 86bf95d546 Backed out changeset f3aeb3726cee (bug 1698067) for Webrender failures 2021-03-16 05:50:52 +02:00
..
src Backed out changeset f3aeb3726cee (bug 1698067) for Webrender failures 2021-03-16 05:50:52 +02:00
Cargo.toml Bug 1687536 - Move SWGL compositor into WebRender proper. r=lsalzman 2021-02-07 20:04:14 +00:00
DCLayerTree.cpp Bug 1692095 - Change DirectComposition virtual surface format to DXGI_FORMAT_R8G8B8A8_UNORM r=jrmuizel 2021-02-11 05:11:10 +00:00
DCLayerTree.h Bug 1660470 - Add missing include directives/forward declarations. r=nika 2020-11-23 16:21:38 +00:00
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 Bug 1691895 - Make RenderCompositorSWGL work on android r=geckoview-reviewers,mattwoodrow,agi 2021-02-16 22:30:47 +00:00
RenderAndroidSurfaceTextureHost.h Bug 1673342 - Add Support of software WebRender with CompositorOGL on Android and Linux r=mattwoodrow 2021-03-01 13:45:38 +00:00
RenderBufferTextureHost.cpp Bug 1688096 - Part 1. Merge SW-WR and WR render texture host paths to allow mixed compositors. r=mattwoodrow 2021-02-24 19:39:59 +00:00
RenderBufferTextureHost.h Bug 1688096 - Part 1. Merge SW-WR and WR render texture host paths to allow mixed compositors. r=mattwoodrow 2021-02-24 19:39:59 +00:00
RenderCompositor.cpp Bug 1688096 - Part 2. Add flag to CompositorOptions to allow SW-WR on a per widget basis. r=mattwoodrow 2021-02-24 19:40:00 +00:00
RenderCompositor.h Bug 1673342 - Add Support of software WebRender with CompositorOGL on Android and Linux r=mattwoodrow 2021-03-01 13:45:38 +00:00
RenderCompositorANGLE.cpp Bug 1697981 - Do not allocate CompositorWindow for Software WebRender r=nical 2021-03-12 12:52:16 +00:00
RenderCompositorANGLE.h Bug 1690216 - Report whether to redraw on invalidation to WR. r=mattwoodrow 2021-02-24 14:15:02 +00:00
RenderCompositorD3D11SWGL.cpp Bug 1697335 - Fallback from WebRender (Software D3D11) to WebRender (Software) when ID3D11Texture2D allocation of tile fails r=aosmond 2021-03-10 05:22:45 +00:00
RenderCompositorD3D11SWGL.h Bug 1677459 - Split platform independent part to RenderCompositorCompositorSWGL r=mattwoodrow 2021-02-23 08:57:27 +00:00
RenderCompositorEGL.cpp Bug 1696845 - Use dlsym for gdk_*_display_get_type. r=stransky 2021-03-11 14:32:53 +00:00
RenderCompositorEGL.h Bug 1690216 - Report whether to redraw on invalidation to WR. r=mattwoodrow 2021-02-24 14:15:02 +00:00
RenderCompositorLayersSWGL.cpp Bug 1686800 - Call mCompositor->EndFrame() only when StartCompositing() is called r=lsalzman 2021-03-10 06:51:35 +00:00
RenderCompositorLayersSWGL.h Bug 1686800 - Call mCompositor->EndFrame() only when StartCompositing() is called r=lsalzman 2021-03-10 06:51:35 +00:00
RenderCompositorNative.cpp Bug 1690216 - Report whether to redraw on invalidation to WR. r=mattwoodrow 2021-02-24 14:15:02 +00:00
RenderCompositorNative.h Bug 1690216 - Report whether to redraw on invalidation to WR. r=mattwoodrow 2021-02-24 14:15:02 +00:00
RenderCompositorOGL.cpp Bug 1690216 - Report whether to redraw on invalidation to WR. r=mattwoodrow 2021-02-24 14:15:02 +00:00
RenderCompositorOGL.h Bug 1690216 - Report whether to redraw on invalidation to WR. r=mattwoodrow 2021-02-24 14:15:02 +00:00
RenderCompositorOGLSWGL.cpp Bug 1697567 - Request Y flip in RenderCompositorOGLSWGL::MaybeReadback. r=jrmuizel 2021-03-11 21:30:34 +00:00
RenderCompositorOGLSWGL.h Bug 1673342 - Add Support of software WebRender with CompositorOGL on Android and Linux r=mattwoodrow 2021-03-01 13:45:38 +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 Backed out changeset f3aeb3726cee (bug 1698067) for Webrender failures 2021-03-16 05:50:52 +02:00
RenderCompositorSWGL.h Bug 1690216 - Report whether to redraw on invalidation to WR. r=mattwoodrow 2021-02-24 14:15:02 +00:00
RenderD3D11TextureHost.cpp Bug 1691640 - Add nullptr check to MapTexture() r=mattwoodrow 2021-02-09 10:26:19 +00:00
RenderD3D11TextureHost.h Bug 1678656 - Don't rely on mPlanes to compute RenderTextureHost size, since it's only initialized when used with SWGL. r=jrmuizel 2021-02-09 04:38:24 +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 1688096 - Part 1. Merge SW-WR and WR render texture host paths to allow mixed compositors. r=mattwoodrow 2021-02-24 19:39:59 +00:00
RenderExternalTextureHost.h Bug 1688096 - Part 1. Merge SW-WR and WR render texture host paths to allow mixed compositors. r=mattwoodrow 2021-02-24 19:39:59 +00:00
RenderMacIOSurfaceTextureHost.cpp Bug 1678656 - Don't rely on mPlanes to compute RenderTextureHost size, since it's only initialized when used with SWGL. r=jrmuizel 2021-02-09 04:38:24 +00:00
RenderMacIOSurfaceTextureHost.h Bug 1678656 - Don't rely on mPlanes to compute RenderTextureHost size, since it's only initialized when used with SWGL. r=jrmuizel 2021-02-09 04:38:24 +00:00
RenderSharedSurfaceTextureHost.cpp Bug 1688096 - Part 1. Merge SW-WR and WR render texture host paths to allow mixed compositors. r=mattwoodrow 2021-02-24 19:39:59 +00:00
RenderSharedSurfaceTextureHost.h Bug 1688096 - Part 1. Merge SW-WR and WR render texture host paths to allow mixed compositors. r=mattwoodrow 2021-02-24 19:39:59 +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 1673342 - Add Support of software WebRender with CompositorOGL on Android and Linux r=mattwoodrow 2021-03-01 13:45:38 +00:00
RenderTextureHostSWGL.cpp Bug 1692029 Part 1: Make TextureHost report a native texture policy. r=lsalzman 2021-03-10 18:27:28 +00:00
RenderTextureHostSWGL.h Bug 1678656 - Don't rely on mPlanes to compute RenderTextureHost size, since it's only initialized when used with SWGL. r=jrmuizel 2021-02-09 04:38:24 +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 1678656 - Don't rely on mPlanes to compute RenderTextureHost size, since it's only initialized when used with SWGL. r=jrmuizel 2021-02-09 04:38:24 +00:00
RenderThread.cpp Bug 1696845 - Use dlsym for gdk_*_display_get_type. r=stransky 2021-03-11 14:32:53 +00:00
RenderThread.h Bug 1696105 - Remove aBridge argument from RenderThread::HandleDeviceReset() r=aosmond 2021-03-03 10:29:40 +00:00
RendererOGL.cpp Bug 1696105 - Remove aBridge argument from RenderThread::HandleDeviceReset() r=aosmond 2021-03-03 10:29:40 +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
WebRenderAPI.cpp Bug 1688096 - Part 1. Merge SW-WR and WR render texture host paths to allow mixed compositors. r=mattwoodrow 2021-02-24 19:39:59 +00:00
WebRenderAPI.h Bug 1694707 - Select correct scroll root within fixed position items with dynamic toolbar. r=gw 2021-03-02 21:53:41 +00:00
WebRenderTypes.cpp
WebRenderTypes.h Bug 1694059 - Use WebRender to render most non-native-theme widgets when possible. r=mstange 2021-02-23 10:49:37 +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 1673342 - Add Support of software WebRender with CompositorOGL on Android and Linux r=mattwoodrow 2021-03-01 13:45:38 +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