A GPU-based renderer for the web
Clone or download
bors-servo Auto merge of #3069 - kvark:gpu-cache-debug, r=gw3583
GPU cache debug visualization

This is a barebones visualization path for GPU cache updates. The idea is to assign different tags/colors for different types of the GPU cache blocks, so that we can see how bad the updates are fragmented upon scrolling and/or scene updates.

![wr-gpu-cache-debug](https://user-images.githubusercontent.com/107301/45647892-0c0ef380-ba95-11e8-8f4b-a9d8c00c51df.png)

r? @gw3583

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/webrender/3069)
<!-- Reviewable:end -->
Latest commit fec23da Sep 17, 2018

README.md

WebRender

GPU renderer for the Web content, used by Servo.

Update as a Dependency

After updating shaders in WebRender, go to servo and:

  • Go to the servo directory and do ./mach update-cargo -p webrender
  • Create a pull request to servo

Use WebRender with Servo

To use a local copy of WebRender with servo, go to your servo build directory and:

  • Edit Cargo.toml
  • Add at the end of the file:
[patch."https://github.com/servo/webrender"]
"webrender" = { path = "<path>/webrender" }
"webrender_api" = { path = "<path>/webrender_api" }

where <path> is the path to your local copy of WebRender.

  • Build as normal

Documentation

The Wiki has a few pages describing the internals and conventions of WebRender.