mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-08 22:08:16 +00:00
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 |
||
---|---|---|
.. | ||
compositor | ||
compositor-wayland | ||
compositor-windows |