weston/clients
Ander Conselvan de Oliveira d224bb9218 nested: Fix skipping frames due to texture update without a context
Calls into cairo-gles may change the current context, so it was only by
chance that sometimes we had the proper one as current and updated the
correct texture in surface_attach().

In order to fix this, calling display_acquire_window_surface() before
binding the texture for setup is necessary. However this call has the
side effect of allocating a cairo surface for the window. At flush time,
the existence of this surface will cause an eglSwapBuffers(), even
if no rendering was done to it, leading to undefined contents on the
screen. This happens when the idle redraw task runs while there is a
pending frame callback.

Workaround this by moving the texture setup from surface_attach() to the
redraw handler, so that the cairo surface is only allocated when
redering is done.
2013-08-16 10:56:00 -07:00
..
.gitignore add fullscreen to .gitignore 2013-06-04 23:20:22 -04:00
calibrator.c calibrator: Add touch support to calibrator 2013-08-12 16:54:10 -07:00
clickdot.c malloc + memset -> zalloc 2013-08-08 13:46:13 -07:00
cliptest.c malloc + memset -> zalloc 2013-08-08 13:46:13 -07:00
desktop-shell.c desktop-shell: Add touch support to panel launcher icons 2013-08-12 16:54:10 -07:00
dnd.c malloc + memset -> zalloc 2013-08-08 13:46:13 -07:00
editor.c clients: use xmalloc in more places 2013-08-07 16:27:33 -07:00
eventdemo.c Pass argc pointer to parse_options() 2013-02-20 15:27:49 -05:00
flower.c Drop extraneous duplicate header includes 2013-08-06 17:02:22 -07:00
fullscreen.c fullscreen: Add fullscreen testing client 2013-05-28 16:14:38 -04:00
gears.c malloc + memset -> zalloc 2013-08-08 13:46:13 -07:00
glmatrix.c Add signedness warning flag and fix fallout 2012-03-30 11:52:39 -04:00
image.c malloc + memset -> zalloc 2013-08-08 13:46:13 -07:00
keyboard.c keyboard: Don't use next_utf8_char() to go back where we came from 2013-08-15 11:37:14 -07:00
Makefile.am screenshooter: Only link to $(CLIENT_LIBS) not libtoytoolkit.la 2013-08-12 22:12:32 -07:00
matrix3.xpm clients: import glmatrix.c and matrix3.xpm 2011-11-18 14:45:04 +02:00
nested-client.c clients: Nested compositor example 2013-06-04 02:47:12 -04:00
nested.c nested: Fix skipping frames due to texture update without a context 2013-08-16 10:56:00 -07:00
resizor.c malloc + memset -> zalloc 2013-08-08 13:46:13 -07:00
screenshot.c screenshooter: Add missing newline and use program_invocation_short_name 2013-08-12 22:15:38 -07:00
simple-egl.c fix compile error when EGL_BUFFER_AGE_EXT is missing 2013-08-12 16:54:10 -07:00
simple-shm.c simple-shm: Handle OOM when allocating struct display 2013-08-15 11:39:52 -07:00
simple-touch.c simple-touch: Handle OOM when allocating struct touch 2013-08-15 11:40:30 -07:00
smoke.c smoke: Add touch support to smoke example 2013-08-12 16:54:10 -07:00
subsurfaces.c window: Add API to check for subcompositor, use in subsurface example 2013-08-15 11:54:03 -07:00
tablet-shell.c malloc + memset -> zalloc 2013-08-08 13:46:13 -07:00
terminal.c terminal: Make utf-8 state machine assemble unicode code point value 2013-08-13 17:23:54 -07:00
transformed.c transformed: Add keyboard shortcuts to change transform 2013-05-22 16:19:01 -04:00
view.c malloc + memset -> zalloc 2013-08-08 13:46:13 -07:00
weston-info.c weston-info: Use xmalloc() in weston-info 2013-08-16 10:55:59 -07:00
weston-simple-im.c text: Rename input_method to wl_input_method 2013-05-02 17:18:46 -04:00
window.c window: Use xzalloc() instead of silently failing to add output 2013-08-16 10:55:59 -07:00
window.h window: Add API to check for subcompositor, use in subsurface example 2013-08-15 11:54:03 -07:00
wscreensaver-glue.c screensaver: fix decoding of transparency in xpm files 2012-09-06 21:08:12 -04:00
wscreensaver-glue.h Never include wayland-util.h directly 2011-11-22 09:35:14 -05:00
wscreensaver.c Pass argc pointer to parse_options() 2013-02-20 15:27:49 -05:00
wscreensaver.h Add signedness warning flag and fix fallout 2012-03-30 11:52:39 -04:00