gtk2/gdk/wayland
Jasper St. Pierre d48adf9cee gdkwindow: Remove the internal cairo_surface used for out-of-band painting
Traditionally, the way painting was done in GTK+ was with the
"expose-event" handler, where you'd use GDK methods to do drawing on
your surface. In GTK+ 2.24, we added cairo support with gdk_cairo_create,
so you could paint your graphics with cairo.

Since then, we've added client-side windows, double buffering, the paint
clock, and various other enhancements, and the modern way to do drawing
is to connect to the "draw" signal on GtkWidget, which hands you a
cairo_t. To do double-buffering, the cairo_t we hand you is actually on
a secret surface, not the actual backing store of the window, and when
the draw handler completes we blit it into the main backing store
atomically.

The code to do this is with the APIs gdk_window_begin_paint_region,
which creates the temporary surface, and gdk_window_end_paint which
blits it back into the backing store. GTK+'s implementation of the
"draw" signal uses these APIs.

We've always sort-of supported people calling gdk_cairo_create
"outside" of a begin_paint / end_paint like old times, but then you're
not getting the benefit of double-buffering, and it's harder for GDK to
optimize.

Additionally, newer backends like Mir and Wayland can't actually support
this model, since they're based on double-buffering and swapping buffers
at various points in time. If we hand you a random cairo_t, we have no
idea when is a good time to swap.

Remove support for this.

This is technically a GDK API break: a warning is added in cases where
gdk_cairo_create is called outside of a paint cycle, and the returned
surface is a dummy that won't ever be composited back onto the main
surface. Testing with complex applications like Ardour didn't produce
any warnings.
2014-06-20 20:41:54 -04:00
..
protocol wayland: Add support for show_window_menu 2014-05-24 15:55:55 -04:00
gdkapplaunchcontext-wayland.c Change FSF Address 2012-02-27 17:06:11 +00:00
gdkcursor-wayland.c wayland: Remove unused stuff 2014-05-16 15:24:37 -04:00
gdkdevice-wayland.c wayland: Ensure the touch sequence pointer value is non-null 2014-06-12 12:35:23 +02:00
gdkdisplay-wayland.c wayland: Prevent stale paints and weird artifacts when using Weston 2014-06-20 09:02:02 -04:00
gdkdisplay-wayland.h wayland: Simplify roundtrip initialization 2014-05-16 15:35:29 -04:00
gdkdnd-wayland.c wayland: Don't assert fail in DND 2013-11-19 18:55:26 -05:00
gdkeventsource.c Handle recursion from motion event handlers 2013-11-11 23:17:14 -05:00
gdkkeys-wayland.c wayland: Implement gdk_keymap_get_modifier_state 2013-04-06 21:16:38 -04:00
gdkprivate-wayland.h wayland: Prevent stale paints and weird artifacts when using Weston 2014-06-20 09:02:02 -04:00
gdkscreen-wayland.c wayland: Explicitly handle classic mode for now 2014-06-06 15:32:59 +02:00
gdkselection-wayland.c wayland: Remove unhelpful debug message 2012-07-12 15:58:37 +01:00
gdkwayland.h wayland: Remove displaymanager implementation 2013-05-02 16:14:59 +02:00
gdkwaylanddevice.h Add GDK_AVAILABLE_IN_ALL annotations in gdk 2013-05-05 15:38:46 -04:00
gdkwaylanddisplay.h wayland: fix rename of wl_shell to xdg_shell 2014-01-20 14:37:33 -05:00
gdkwaylandselection.h wayland: Fix build due to missing symbol export 2013-07-09 07:09:13 +02:00
gdkwaylandwindow.h wayland: Replace wl_shell_surface with xdg_shell 2013-11-18 13:44:20 -05:00
gdkwindow-wayland.c gdkwindow: Remove the internal cairo_surface used for out-of-band painting 2014-06-20 20:41:54 -04:00
Makefile.am wayland: Set gtk-decoration-layout 2014-06-06 15:32:59 +02:00
wm-button-layout-translation.c wayland: Set gtk-decoration-layout 2014-06-06 15:32:59 +02:00
wm-button-layout-translation.h wayland: Set gtk-decoration-layout 2014-06-06 15:32:59 +02:00