Skip to content
A GPU-based renderer for the web
Rust C++ GLSL HTML Vue JavaScript Other
Branch: master
Clone or download

Latest commit

bors-servo Auto merge of #3897 - moz-gfx:github-sync, r=auto
Sync changes from mozilla-central gfx/wr
Latest commit 02be105 Mar 27, 2020

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
ci-scripts Bug 1622668 - exclude swgl from CI test scripts. r=gw Mar 16, 2020
debugger Bug 1566031 - Update vulnerable lodash version in WebRender Debugger.… Oct 3, 2019
direct-composition Bug 1612941 - update gleam version to allow implementation of Gl trai… Mar 14, 2020
example-compositor Bug 1612941 - update gleam version to allow implementation of Gl trai… Mar 14, 2020
examples Bug 1612941 - update gleam version to allow implementation of Gl trai… Mar 14, 2020
glsl-to-cxx Bug 1624396 - add necessary trigonometry intrinsics for conic gradien… Mar 25, 2020
peek-poke Bug 1612988 - Fix warning in a peek_poke test. r=jrmuizel Feb 10, 2020
swgl Bug 1624396 - add necessary trigonometry intrinsics for conic gradien… Mar 25, 2020
tileview Bug 1605283 - Improve support for invalidation debugging and testing … Mar 25, 2020
webrender Bug 1625030 - Wrench `perf` fixes and improvements r=gw Mar 27, 2020
webrender_api Bug 1618000: Part 2: Clamp blur radius based on scale factors r=gfx-r… Mar 26, 2020
webrender_build Bug 1624396 - implement centralized shader features list management f… Mar 25, 2020
wr_malloc_size_of Bug 1567241 - Update to euclid 0.20. r=kvark, emilio. Jul 20, 2019
wrench Bug 1625030 - Wrench `perf` fixes and improvements r=gw Mar 27, 2020
.gitignore Move plane splitting logic to the picture module, actually perform Oct 22, 2018
.taskcluster.yml Bug 1619293 - Re-enable rust flags in github CI. r=jrmuizel Mar 3, 2020
Cargo.lock Bug 1625030 - Wrench `perf` fixes and improvements r=gw Mar 27, 2020
Cargo.toml Bug 1605283 - Improve support for invalidation debugging and testing … Jan 19, 2020
LICENSE Add license info Feb 10, 2016
README.md Bug 1587650 - Update README.md with more informative intro r=gw Oct 18, 2019
appveyor.yml Bug 1619265 - Bump rust versions for github CI. r=jrmuizel Mar 2, 2020
rustfmt.toml Rustfmt pass Sep 18, 2017
servo-tidy.toml Bug 1622720 - Add support for the tracy frame profiler to webrender. … Mar 17, 2020

README.md

WebRender

Version

WebRender is a GPU-based 2D rendering engine written in Rust. Firefox, the research web browser Servo, and other GUI frameworks draw with it. It currently uses the OpenGL API internally.

Note that the canonical home for this code is in gfx/wr folder of the mozilla-central repository at https://hg.mozilla.org/mozilla-central. The Github repository at https://github.com/servo/webrender should be considered a downstream mirror, although it contains additional metadata (such as Github wiki pages) that do not exist in mozilla-central. Pull requests against the Github repository are still being accepted, although once reviewed, they will be landed on mozilla-central first and then mirrored back. If you are familiar with the mozilla-central contribution workflow, filing bugs in Bugzilla and submitting patches there would be preferred.

Update as a Dependency

After updating shaders in WebRender, go to servo and:

  • Go to the servo directory and do ./mach update-cargo -p webrender
  • Create a pull request to servo

Use WebRender with Servo

To use a local copy of WebRender with servo, go to your servo build directory and:

  • Edit Cargo.toml
  • Add at the end of the file:
[patch."https://github.com/servo/webrender"]
"webrender" = { path = "<path>/webrender" }
"webrender_api" = { path = "<path>/webrender_api" }

where <path> is the path to your local copy of WebRender.

  • Build as normal

Documentation

The Wiki has a few pages describing the internals and conventions of WebRender.

Testing

Tests run using OSMesa to get consistent rendering across platforms.

Still there may be differences depending on font libraries on your system, for example.

See this gist for how to make the text tests useful in Fedora, for example.

You can’t perform that action at this time.