Backport 1210067fbeb21bdce34ec710e66749de981a1617.
authorRafael Antognolli <rafael.antognolli@intel.com>
Sat, 3 Aug 2013 21:00:16 +0000 (18:00 -0300)
committerEduardo Lima (Etrunko) <eduardo.lima@intel.com>
Tue, 13 Aug 2013 20:49:23 +0000 (17:49 -0300)
commitdc7ed56be8355794ef3a6d314ed2e2cda8e4c1f2
tree91cd4098c5435873b3e3f0bd6a632f6092e3502f
parent6db0d8a2927724e33c9f9b7dfed1cd3cade46fa9
Backport 1210067fbeb21bdce34ec710e66749de981a1617.

ecore_evas/wayland_egl: Only render if last frame has been presented.

This avoids blocking in eglSwapBuffers and has the side effect of
avoiding doing unnecessary work - painting where a frame won't be
presented.

We do this by using the event that the wayland compositor will send us
to tell us that the frame has been presented. Due to the fact that
evas_render_updates() could do no work and not cause a eglSwapBuffers we
must always have a frame callback listener setup.

Original patch by: Rob Bradford <rob@linux.intel.com>

(I just adjusted the patch to the single efl tree)
src/lib/ecore_evas/ecore_evas_wayland_egl.c