gecko-dev/gfx/wr/examples
Jamie Nicol 790229886f Bug 1719367 - Hook up default clear color to RenderCompositorLayersSWGL. r=sotaro
Fenix makes use of the default clear color by setting it to a dark
color when the dark theme is enabled to avoid white flashes while
pages are loading. In bug 1663732 we hooked this functionality up to
webrender, however, it was only used by the draw compositor. Now with
software webrender on Android, we sometimes use
RenderCompositorLayersSWGL rather than the draw compositor, and users
are therefore experiencing white flashes during page loads.

This adds a clear_color argument to StartCompositing(), which
RenderCompositorLayersSWGL uses to set the CompositorOGL's clear
color. This patch also makes Renderer::clear_color not an Option
type, as we only ever used it in Some form, and that simplifies the
FFI.

Differential Revision: https://phabricator.services.mozilla.com/D119272
2021-07-08 11:46:37 +00:00
..
common Bug 1719367 - Hook up default clear color to RenderCompositorLayersSWGL. r=sotaro 2021-07-08 11:46:37 +00:00
Cargo.toml Bug 1709757 - Pt 3 - Remove WR internal code and APIs for debugger feature r=gfx-reviewers,nical 2021-05-07 01:57:01 +00:00
README.md
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
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
scrolling.rs Bug 1712651 - Remove unused pinch-zoom APIs r=gfx-reviewers,bradwerth 2021-05-25 21:32:25 +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

README.md

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