ecore_wl2: Add API ecore_wl2_window_surface_flush
authorDerek Foreman <derekf@osg.samsung.com>
Thu, 30 Nov 2017 21:33:38 +0000 (15:33 -0600)
committerDerek Foreman <derekf@osg.samsung.com>
Fri, 1 Dec 2017 16:59:51 +0000 (10:59 -0600)
commit7658fc101f59a27a4cd18c8fb51c9ea38d9f2b4b
tree832046672e9cd5c1c282cbe50450bb45dd5e9c26
parentc48ca81026b3c8f5b3a832419099696d0931f0f6
ecore_wl2: Add API ecore_wl2_window_surface_flush

This allows something that only has the Ecore_Wl2_Window (ie: something
that isn't engine code) to force dropping of all the buffers.

This should be safe to call at any time as the buffer handling logic
will properly cleanup the buffers when async render is done with them
or the compositor releases them.

This will eventually be used when a wayland client receives a
wl_output.leave events to indicate it isn't displayed on any outputs.
src/lib/ecore_wl2/Ecore_Wl2.h
src/lib/ecore_wl2/ecore_wl2_window.c