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

..15-Mar-2021-

ci-scripts/H15-Mar-2021-353257

debugger/H03-May-2022-8,2198,167

direct-composition/H15-Mar-2021-708566

example-compositor/H15-Mar-2021-1,6001,279

examples/H15-Mar-2021-3,0822,581

glsl-to-cxx/H15-Mar-2021-7,5896,834

peek-poke/H15-Mar-2021-1,9491,494

swgl/H15-Mar-2021-10,6458,713

tileview/H15-Mar-2021-848686

webrender/H15-Mar-2021-79,43262,404

webrender_api/H15-Mar-2021-9,0406,445

webrender_build/H15-Mar-2021-411315

wr_malloc_size_of/H15-Mar-2021-677538

wrench/H03-May-2022-47,53344,752

.gitignoreH A D15-Mar-2021193 2821

.taskcluster.ymlH A D15-Mar-20217.4 KiB177174

Cargo.lockH A D15-Mar-202199.8 KiB2,2271,996

Cargo.tomlH A D15-Mar-2021757 2622

LICENSEH A D15-Mar-202115.3 KiB375293

README.mdH A D15-Mar-20212.1 KiB5436

rustfmt.tomlH A D15-Mar-2021170 76

servo-tidy.tomlH A D15-Mar-2021914 4036

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