1
0
Fork 0
mutter-performance-source/src/backends/native
Jonas Ådahl e891a8b628 renderer-native: Resize legacy onscreen before panting
By creating a pending gbm/EGL surface pair, only setting it on
swap-buffers, we would draw onto a buffer on the old surface, then swap
the buffer from the new surface, causing the first frame after a
hot-plug always having no content.

This was in the past not very noticable since some non-deterministic but
frequent side effect in gnome-shell caused hot-plugging to always render
two new frames, but after "Introduce regional stage rendering", this
side effect did not occur as often, thus making it more visible.

This commit updates the current gbm/EGL surface pair before painting a
frame, so that when the frame is painted, the surface with the correct
size is used and the buffer from correct surface is swapped.

https://bugzilla.gnome.org/show_bug.cgi?id=768976
2016-07-20 14:23:48 +08:00
..
dbus-utils.c launcher: Replace mutter-launch with logind integration 2014-05-19 15:09:23 -04:00
dbus-utils.h launcher: Replace mutter-launch with logind integration 2014-05-19 15:09:23 -04:00
meta-backend-native-private.h backends/native: Implement support for pointer barriers 2015-01-19 02:27:59 -08:00
meta-backend-native.c backends/native: Support drawing onto multiple onscreen framebuffers 2016-07-20 14:23:48 +08:00
meta-backend-native.h Make mutter manage its own clutter backends 2016-07-20 14:23:48 +08:00
meta-barrier-native.c Move out generic math parts out of the native barrier implementation 2016-02-16 19:02:48 +08:00
meta-barrier-native.h backends/native: Implement support for pointer barriers 2015-01-19 02:27:59 -08:00
meta-clutter-backend-native.c Introduce regional stage rendering 2016-07-20 14:23:48 +08:00
meta-clutter-backend-native.h Introduce regional stage rendering 2016-07-20 14:23:48 +08:00
meta-cursor-renderer-native.c Move cogl KMS winsys into the native backend 2016-07-20 14:23:48 +08:00
meta-cursor-renderer-native.h Support for hardware cursor sizes other than 64x64 on wayland 2014-09-24 15:42:17 -06:00
meta-idle-monitor-native.c idle-monitor-native: Don't leak user active watches 2016-01-11 11:23:54 -05:00
meta-idle-monitor-native.h Start creating different subdirectories for each backend 2014-03-31 23:44:47 -04:00
meta-input-settings-native.c backends: Force 2-finger scroll by default if available 2015-12-15 14:38:23 +01:00
meta-input-settings-native.h backends/native: Add libinput-based MetaInputSettings implementation 2015-01-18 13:32:28 -08:00
meta-launcher.c Move cogl KMS winsys into the native backend 2016-07-20 14:23:48 +08:00
meta-launcher.h launcher: Expose KMS fd 2016-07-20 14:23:48 +08:00
meta-monitor-manager-kms.c backends/native: Support drawing onto multiple onscreen framebuffers 2016-07-20 14:23:48 +08:00
meta-monitor-manager-kms.h backends/native: Support drawing onto multiple onscreen framebuffers 2016-07-20 14:23:48 +08:00
meta-renderer-native.c renderer-native: Resize legacy onscreen before panting 2016-07-20 14:23:48 +08:00
meta-renderer-native.h backends/native: Support drawing onto multiple onscreen framebuffers 2016-07-20 14:23:48 +08:00
meta-stage-native.c renderer-native: Resize legacy onscreen before panting 2016-07-20 14:23:48 +08:00
meta-stage-native.h backends/native: Support drawing onto multiple onscreen framebuffers 2016-07-20 14:23:48 +08:00