gecko-dev/gfx/wr/example-compositor
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
..
compositor Bug 1719367 - Hook up default clear color to RenderCompositorLayersSWGL. r=sotaro 2021-07-08 11:46:37 +00:00
compositor-wayland Bug 1707202 - Remove surface_origin_is_top_left support from NativeSurface again, r=nical 2021-04-26 12:48:39 +00:00
compositor-windows Bug 1695500 - Implement Wayland backend for the example compositor, r=gw 2021-03-20 05:46:45 +00:00