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

..15-Mar-2021-

benchmarks/H15-Mar-2021-18,00817,985

examples/H15-Mar-2021-2826

reftests/H15-Mar-2021-19,12818,087

res/H15-Mar-2021-2521

script/H15-Mar-2021-1,158881

src/H15-Mar-2021-9,0397,633

.gitignoreH A D15-Mar-202163 87

Cargo.tomlH A D15-Mar-20212 KiB7466

README.mdH A D15-Mar-20211.3 KiB3624

build.rsH A D15-Mar-2021845 2922

README.md

1# wrench
2
3`wrench` is a tool for debugging webrender outside of a browser engine.
4
5## headless
6
7`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`.
8
9## `replay` and `show`
10
11Binary recordings can be generated by webrender and replayed with `wrench replay`. Enable binary recording in `RendererOptions`.
12
13```rust
14RendererOptions {
15    ...
16    recorder: Some(Box::new(BinaryRecorder::new("wr-frame.bin"))),
17    ...
18}
19```
20
21If you are working on gecko integration you can enable recording in `webrender_bindings/src/bindings.rs` by setting
22
23```rust
24static ENABLE_RECORDING: bool = true;
25```
26
27`wrench replay --save yaml` will convert the recording into frames described in yaml. Frames can then be replayed with `wrench show`.
28
29## `reftest`
30
31Wrench also has a reftest system for catching regressions.
32* To run all reftests, run `script/headless.py reftest`
33* To run specific reftests, run `script/headless.py reftest path/to/test/or/dir`
34* To examine test failures, use the [reftest analyzer](https://hg.mozilla.org/mozilla-central/raw-file/tip/layout/tools/reftest/reftest-analyzer.xhtml)
35* To add a new reftest, create an example frame and a reference frame in `reftests/` and then add an entry to `reftests/reftest.list`
36