path: root/src/lib/ecore_wl2/ecore_wl2_buffer.c
diff options
authorDerek Foreman <>2018-01-18 17:21:27 -0600
committerDerek Foreman <>2018-01-19 12:40:40 -0600
commit520821e432476ff440b44e90fe9bfe21ec0847b9 (patch)
tree65b6da0e062cb213e195b8e3aa6b23ad68481fa6 /src/lib/ecore_wl2/ecore_wl2_buffer.c
parent79f3eaa68bb82af95415a08efe86cb8182f7d75d (diff)
wayland: Reduce number of unneccessary display flushes
b48781aa6c85c72f620c57cebff96580ddd67899 fixed multiple bugs where the display wasn't flushed correctly, however it was a little overzealous. Some of the flushes were added after calls that only updated internal state, some in internal functions in which the caller was already going to flush, and some were after wayland protocol calls that are double buffered anyway and won't do anything until a following commit. Also, I've removes at least one long standing flush where the recently added flush is in a better location than the original.
Diffstat (limited to 'src/lib/ecore_wl2/ecore_wl2_buffer.c')
1 files changed, 0 insertions, 1 deletions
diff --git a/src/lib/ecore_wl2/ecore_wl2_buffer.c b/src/lib/ecore_wl2/ecore_wl2_buffer.c
index bf2fe5f8ec..4fa905e5ff 100644
--- a/src/lib/ecore_wl2/ecore_wl2_buffer.c
+++ b/src/lib/ecore_wl2/ecore_wl2_buffer.c
@@ -749,7 +749,6 @@ _ecore_wl2_buffer_test(Ecore_Wl2_Display *ewd)
749 zwp_linux_buffer_params_v1_add_listener(dp, &params_listener, ewd); 749 zwp_linux_buffer_params_v1_add_listener(dp, &params_listener, ewd);
750 zwp_linux_buffer_params_v1_create(dp, buf->w, buf->h, 750 zwp_linux_buffer_params_v1_create(dp, buf->w, buf->h,
751 DRM_FORMAT_ARGB8888, 0); 751 DRM_FORMAT_ARGB8888, 0);
752 ecore_wl2_display_flush(ewd);
753 752
754 ecore_wl2_buffer_destroy(buf); 753 ecore_wl2_buffer_destroy(buf);
755 754