gecko-dev/gfx/wr/examples
Glenn Watson a34d3f438e Bug 1720624 - Remove WrSpaceAndClip type r=nical
This was used when defining scroll layers and also backdrop-filter.

Removing it from the scroll layer API allows removal of the implicit
clip rect that a scroll node previously created (Gecko doesn't use
this). To maintain compatibility with wrench tests, add a flag that
allows a test to specify a clip rect should be created for the scroll
layer (we should remove this from wrench in future and port the tests
to create explicit clip rects as required).

The usage of backdrop-filter was the only remaining place this type
was used, so it's now ported to use the clip-chain API.

This simplifies the scroll layer API and removes an extra clip rect
from each scroll layer instance, as a small performance improvement.

Differential Revision: https://phabricator.services.mozilla.com/D119938
2021-07-18 22:32:27 +00:00
..
common Bug 1719367 - Hook up default clear color to RenderCompositorLayersSWGL. r=sotaro 2021-07-08 11:46:37 +00:00
alpha_perf.rs Bug 1711648 - Move LayoutRect to the Box2D representation. r=jrmuizel. 2021-06-11 13:33:10 +00:00
animation.rs Bug 1711648 - Move LayoutRect to the Box2D representation. r=jrmuizel. 2021-06-11 13:33:10 +00:00
basic.rs Bug 1711648 - Move LayoutRect to the Box2D representation. r=jrmuizel. 2021-06-11 13:33:10 +00:00
blob.rs Bug 1711648 - Move LayoutRect to the Box2D representation. r=jrmuizel. 2021-06-11 13:33:10 +00:00
Cargo.toml
document.rs Bug 1711648 - Move LayoutRect to the Box2D representation. r=jrmuizel. 2021-06-11 13:33:10 +00:00
iframe.rs Bug 1711648 - Move LayoutRect to the Box2D representation. r=jrmuizel. 2021-06-11 13:33:10 +00:00
image_resize.rs Bug 1711648 - Move LayoutRect to the Box2D representation. r=jrmuizel. 2021-06-11 13:33:10 +00:00
multiwindow.rs Bug 1719367 - Hook up default clear color to RenderCompositorLayersSWGL. r=sotaro 2021-07-08 11:46:37 +00:00
README.md
scrolling.rs Bug 1720624 - Remove WrSpaceAndClip type r=nical 2021-07-18 22:32:27 +00:00
texture_cache_stress.rs Bug 1711648 - Move LayoutRect to the Box2D representation. r=jrmuizel. 2021-06-11 13:33:10 +00:00
yuv.rs Bug 1711648 - Move LayoutRect to the Box2D representation. r=jrmuizel. 2021-06-11 13:33:10 +00:00

Examples

This directory contains a collection of examples which uses the WebRender API.

To run an example e.g. basic, try:

cargo run --bin basic