• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

ci-scripts/H30-Mar-2022-409296

example-compositor/H30-Mar-2022-2,6862,114

examples/H30-Mar-2022-2,6512,205

glsl-to-cxx/H30-Mar-2022-8,2457,427

peek-poke/H30-Mar-2022-1,9811,519

swgl/H30-Mar-2022-16,59312,965

tileview/H30-Mar-2022-844682

webrender/H30-Mar-2022-91,00870,316

webrender_api/H30-Mar-2022-6,6464,885

webrender_build/H30-Mar-2022-513404

wr_malloc_size_of/H30-Mar-2022-693552

wrench/H03-May-2022-49,06146,172

.gitignoreH A D30-Mar-2022193 2821

.taskcluster.ymlH A D30-Mar-20227.5 KiB181178

Cargo.lockH A D30-Mar-202244.9 KiB1,9071,710

Cargo.tomlH A D30-Mar-20221 KiB3428

LICENSEH A D30-Mar-202215.3 KiB375293

README.mdH A D30-Mar-20222.1 KiB5436

rustfmt.tomlH A D30-Mar-2022170 76

servo-tidy.tomlH A D30-Mar-2022902 3935

README.md

1# WebRender
2
3[![Version](https://img.shields.io/crates/v/webrender.svg)](https://crates.io/crates/webrender)
4
5WebRender is a GPU-based 2D rendering engine written in [Rust](https://www.rust-lang.org/). [Firefox](https://www.mozilla.org/firefox), the research web browser [Servo](https://github.com/servo/servo), and other GUI frameworks draw with it. It currently uses the OpenGL API internally.
6
7Note that the canonical home for this code is in gfx/wr folder of the
8mozilla-central repository at https://hg.mozilla.org/mozilla-central. The
9Github repository at https://github.com/servo/webrender should be considered
10a downstream mirror, although it contains additional metadata (such as Github
11wiki pages) that do not exist in mozilla-central. Pull requests against the
12Github repository are still being accepted, although once reviewed, they will
13be landed on mozilla-central first and then mirrored back. If you are familiar
14with the mozilla-central contribution workflow, filing bugs in
15[Bugzilla](https://bugzilla.mozilla.org/enter_bug.cgi?product=Core&component=Graphics%3A%20WebRender)
16and submitting patches there would be preferred.
17
18## Update as a Dependency
19After updating shaders in WebRender, go to servo and:
20
21  * Go to the servo directory and do ./mach update-cargo -p webrender
22  * Create a pull request to servo
23
24
25## Use WebRender with Servo
26To use a local copy of WebRender with servo, go to your servo build directory and:
27
28  * Edit Cargo.toml
29  * Add at the end of the file:
30
31```
32[patch."https://github.com/servo/webrender"]
33"webrender" = { path = "<path>/webrender" }
34"webrender_api" = { path = "<path>/webrender_api" }
35```
36
37where `<path>` is the path to your local copy of WebRender.
38
39  * Build as normal
40
41## Documentation
42
43The Wiki has a [few pages](https://github.com/servo/webrender/wiki/) describing the internals and conventions of WebRender.
44
45## Testing
46
47Tests run using OSMesa to get consistent rendering across platforms.
48
49Still there may be differences depending on font libraries on your system, for
50example.
51
52See [this gist](https://gist.github.com/finalfantasia/129cae811e02bf4551ac) for
53how to make the text tests useful in Fedora, for example.
54