gecko-dev/gfx/webrender_bindings
Andrew Osmond 77a93b91d2 Bug 1704227. r=gfx-reviewers,lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D113191
2021-04-26 21:04:29 +00:00
..
src Bug 1675375 Part 2: Add a polygon clips to image masks. r=gw 2021-04-15 18:54:38 +00:00
Cargo.toml Bug 1687536 - Move SWGL compositor into WebRender proper. r=lsalzman 2021-02-07 20:04:14 +00:00
DCLayerTree.cpp Bug 1703099 - Separate out BEGIN_DRAW errors from NEW_SURFACE. r=aosmond 2021-04-14 12:51:16 +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 1699001 - Rename RenderThread::SharedGL() to SingletonGL() r=nical 2021-03-17 10:51:45 +00:00
RenderAndroidSurfaceTextureHost.h Bug 1697670 - Remove gfx::YUVColorSpace::UNKNOWN. r=mstange 2021-03-19 00:58:23 +00:00
RenderBufferTextureHost.cpp Bug 1697670 - Remove gfx::YUVColorSpace::UNKNOWN. r=mstange 2021-03-19 00:58:23 +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 1700532 - Block fallback from RenderCompositorOGLSWGL to RenderCompositorSWGL in RenderCompositor::Create() r=nical 2021-03-24 23:49:36 +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 1699001 - Rename RenderThread::SharedGL() to SingletonGL() r=nical 2021-03-17 10:51:45 +00:00
RenderCompositorANGLE.h Bug 1699001 - Rename RenderThread::SharedGL() to SingletonGL() r=nical 2021-03-17 10:51:45 +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 1684194 [Linux] Use RenderCompositorEGL on X11/EGL, r=sotaro 2021-03-18 13:46:03 +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 1704431 - Handle start compositing only when dirty rect exists r=lsalzman,gfx-reviewers 2021-04-13 03:31:03 +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 1700524 - Rename aWebRender of CreateForCompositorWidget() to aHardwareWebRender r=jgilbert 2021-04-07 07:04:43 +00:00
RenderCompositorNative.h Bug 1697673 - Support surface_origin_is_top_left with native surfaces, r=gw 2021-03-17 20:07:39 +00:00
RenderCompositorOGL.cpp Bug 1700524 - Rename aWebRender of CreateForCompositorWidget() to aHardwareWebRender r=jgilbert 2021-04-07 07:04:43 +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 1705593 - Fix TileOGL::Unmap() r=lsalzman,gfx-reviewers 2021-04-16 21:35:30 +00:00
RenderCompositorOGLSWGL.h Bug 1678892 - Use PBOs for uploading tiles in RenderCompositorOGLSWGL. r=sotaro 2021-03-23 06:36:39 +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 1706887 - Use gfxCriticalNoteOnce in RenderCompositorSWGL::AllocateMappedBuffer() r=gfx-reviewers,nical 2021-04-22 11:54:44 +00: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 1699001 - Rename RenderThread::SharedGL() to SingletonGL() r=nical 2021-03-17 10:51:45 +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 1697670 - Remove gfx::YUVColorSpace::UNKNOWN. r=mstange 2021-03-19 00:58:23 +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 1697670 - Remove gfx::YUVColorSpace::UNKNOWN. r=mstange 2021-03-19 00:58:23 +00:00
RenderTextureHostSWGL.h Bug 1697670 - Remove gfx::YUVColorSpace::UNKNOWN. r=mstange 2021-03-19 00:58:23 +00:00
RenderTextureHostWrapper.cpp Bug 1697670 - Remove gfx::YUVColorSpace::UNKNOWN. r=mstange 2021-03-19 00:58:23 +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 1704227. r=gfx-reviewers,lsalzman 2021-04-26 21:04:29 +00:00
RenderThread.h Bug 1701563 - Recreate RenderThread::mSingletonGL during fallback to RenderCompositorEGL r=nical 2021-03-29 13:34:16 +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 1706396 - Sanity check the GL context version. r=aosmond 2021-04-22 08:03:21 +00:00
WebRenderAPI.h Bug 1675375 Part 2: Add a polygon clips to image masks. r=gw 2021-04-15 18:54:38 +00:00
WebRenderTypes.cpp
WebRenderTypes.h Bug 1703099 - Separate out BEGIN_DRAW errors from NEW_SURFACE. r=aosmond 2021-04-14 12:51:16 +00:00
cbindgen.toml Bug 1675375 Part 2: Add a polygon clips to image masks. r=gw 2021-04-15 18:54:38 +00:00
moz.build Bug 1697670 - Remove gfx::YUVColorSpace::UNKNOWN. r=mstange 2021-03-19 00:58:23 +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