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

..31-Mar-2022-

benchmarks/H31-Mar-2022-18,00817,985

examples/H31-Mar-2022-2826

invalidation/H31-Mar-2022-2118

reftests/H31-Mar-2022-20,61319,497

res/H31-Mar-2022-2521

script/H31-Mar-2022-1,156879

src/H31-Mar-2022-9,0767,638

.gitignoreH A D31-Mar-202263 87

Cargo.tomlH A D31-Mar-20222 KiB7062

README.mdH A D31-Mar-20221.2 KiB2717

build.rsH A D31-Mar-2022845 2922

README.md

1# wrench
2
3`wrench` is a tool for debugging webrender outside of a browser engine.
4
5## Build
6
7Build `wrench` with `cargo build --release` within the `wrench` directory.
8
9## headless
10
11`wrench` has an optional headless mode for use in continuous integration. To run in headless mode, instead of using `cargo run -- args`, use `./headless.py args`.
12
13## `show`
14
15If you are working on gecko integration you can capture a frame via the following steps.
16* Visit about:support and check that the "Compositing" value in the "Graphics" table says "WebRender". Enable `gfx.webrender.all` in about:config if necessary to enable WebRender.
17* Hit ctrl-shift-3 to capture the frame. The data will be put in `~/wr-capture`.
18* View the capture with `wrench show ~/wr-capture`.
19
20## `reftest`
21
22Wrench also has a reftest system for catching regressions.
23* To run all reftests, run `script/headless.py reftest`
24* To run specific reftests, run `script/headless.py reftest path/to/test/or/dir`
25* To examine test failures, use the [reftest analyzer](https://hg.mozilla.org/mozilla-central/raw-file/tip/layout/tools/reftest/reftest-analyzer.xhtml)
26* To add a new reftest, create an example frame and a reference frame in `reftests/` and then add an entry to `reftests/reftest.list`
27