зеркало из https://github.com/mozilla/gecko-dev.git
790229886f
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 |
||
---|---|---|
.. | ||
common | ||
Cargo.toml | ||
README.md | ||
alpha_perf.rs | ||
animation.rs | ||
basic.rs | ||
blob.rs | ||
document.rs | ||
iframe.rs | ||
image_resize.rs | ||
multiwindow.rs | ||
scrolling.rs | ||
texture_cache_stress.rs | ||
yuv.rs |
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