gecko-dev/gfx/wr/wrench
Ashley Hale c976164f43 Bug 1905611 - apply clipping to PictureCompositeMode::SVGFEGraph r=gfx-reviewers,gw
Differential Revision: https://phabricator.services.mozilla.com/D216637
2024-09-12 10:19:43 +00:00
..
benchmarks
examples
invalidation
reftests Bug 1905611 - apply clipping to PictureCompositeMode::SVGFEGraph r=gfx-reviewers,gw 2024-09-12 10:19:43 +00:00
res
script Bug 1905244 - Use `env` to find python3 for headless script r=gfx-reviewers,lsalzman 2024-06-30 20:56:14 +00:00
src Bug 1918055 - Stop using `time@0.1` in wrench r=jrmuizel 2024-09-11 14:28:08 +00:00
.gitignore
Cargo.toml Bug 1918055 - Stop using `time@0.1` in wrench r=jrmuizel 2024-09-11 14:28:08 +00:00
README.md
android.txt
build.rs

README.md

wrench

wrench is a tool for debugging webrender outside of a browser engine.

Build

Build wrench with cargo build --release within the wrench directory.

headless

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.

show

If you are working on gecko integration you can capture a frame via the following steps.

  • 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.
  • Hit ctrl-shift-3 to capture the frame. The data will be put in ~/wr-capture.
  • View the capture with wrench show ~/wr-capture.

reftest

Wrench also has a reftest system for catching regressions.

  • To run all reftests, run script/headless.py reftest
  • To run specific reftests, run script/headless.py reftest path/to/test/or/dir
  • To examine test failures, use the reftest analyzer
  • To add a new reftest, create an example frame and a reference frame in reftests/ and then add an entry to reftests/reftest.list