Robert Mader 1dbe34f5cc Bug 1711244 - Register native layers for GDK frame callbacks,
Analogous to D102835 we need to make GDK aware of opaque surfaces
so frame callbacks get emitted for these surfaces as well. Otherwise
GDK may get stuck waiting on callbacks when used on compositors
that don't emit callbacks for occluded surfaces (which is explicitly
encouraged by the Wayland spec).

GDK runs on the main thread, so we need to dispatch these action
to the main thread as well.

Differential Revision: https://phabricator.services.mozilla.com/D116747
2021-06-03 17:42:29 +00:00
..