gtk2/gdk/quartz
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
..
gdkcursor-quartz.c Implement gdk_display_get_cursor_for_surface in quartz 2013-08-11 10:43:48 -07:00
gdkdevice-core-quartz.c Bug 704216: Fix prototype for gdk_quartz_device_core_warp. 2013-07-15 10:18:22 -07:00
gdkdevicemanager-core-quartz.c Change FSF Address 2012-02-27 17:06:11 +00:00
gdkdevicemanager-core-quartz.h Fix attempted inclusion of local headers with system brackets. 2013-04-22 15:48:34 -07:00
gdkdisplay-quartz.c Implement gdk_display_get_cursor_for_surface in quartz 2013-08-11 10:43:48 -07:00
gdkdisplaymanager-quartz.c Remove framework initialization code 2013-05-10 17:25:58 -07:00
gdkdnd-quartz.c Quartz: Set the drag context target list 2013-10-10 15:37:27 -07:00
gdkdnd-quartz.h Fix attempted inclusion of local headers with system brackets. 2013-04-22 15:48:34 -07:00
gdkeventloop-quartz.c docs: use Returns: consistently 2014-02-19 18:56:05 -05:00
gdkevents-quartz.c quartz: fix manual window move 2014-01-06 15:27:28 -05:00
gdkglobals-quartz.c quartz: add mountain lion as version 8 to enum GdkOSXVersion 2012-11-29 15:00:57 +01:00
gdkkeys-quartz.c NULL check on default keymap 2013-10-11 11:14:32 -07:00
gdkprivate-quartz.h Bug 705750 Quartz input method doesn't work correctly for Chinese characters 2013-08-16 11:18:29 -07:00
gdkproperty-quartz.c Remove get_atom_name and atom_intern 2013-04-22 15:48:35 -07:00
gdkquartz.h Add GDK_AVAILABLE_IN_ALL annotations in gdk 2013-05-05 15:38:46 -04:00
gdkquartzcursor.h Add GDK_AVAILABLE_IN_ALL annotations in gdk 2013-05-05 15:38:46 -04:00
gdkquartzdevice-core.h Add GDK_AVAILABLE_IN_ALL annotations in gdk 2013-05-05 15:38:46 -04:00
gdkquartzdevicemanager-core.h Add GDK_AVAILABLE_IN_ALL annotations in gdk 2013-05-05 15:38:46 -04:00
gdkquartzdisplay.h Add GDK_AVAILABLE_IN_ALL annotations in gdk 2013-05-05 15:38:46 -04:00
gdkquartzdisplaymanager.h Add GDK_AVAILABLE_IN_ALL annotations in gdk 2013-05-05 15:38:46 -04:00
gdkquartzdnd.h Add GDK_AVAILABLE_IN_ALL annotations in gdk 2013-05-05 15:38:46 -04:00
gdkquartzkeys.h Add GDK_AVAILABLE_IN_ALL annotations in gdk 2013-05-05 15:38:46 -04:00
GdkQuartzNSWindow.c quartz: implement gdk_window_set_shadow_width() 2014-01-06 15:27:28 -05:00
GdkQuartzNSWindow.h quartz: fix manual window move 2014-01-06 15:27:28 -05:00
gdkquartzscreen.h Add GDK_AVAILABLE_IN_ALL annotations in gdk 2013-05-05 15:38:46 -04:00
gdkquartzutils.h Move get_key_equivalent() to gdk quartz utils. 2014-01-08 17:42:19 -05:00
GdkQuartzView.c Bug 705750 Quartz input method doesn't work correctly for Chinese characters 2013-08-16 11:18:29 -07:00
GdkQuartzView.h Bug 705750 Quartz input method doesn't work correctly for Chinese characters 2013-08-16 11:18:29 -07:00
gdkquartzvisual.h Add GDK_AVAILABLE_IN_ALL annotations in gdk 2013-05-05 15:38:46 -04:00
gdkquartzwindow.h Add GDK_AVAILABLE_IN_ALL annotations in gdk 2013-05-05 15:38:46 -04:00
gdkscreen-quartz.c all: Name more idles and timeouts 2014-03-26 20:09:30 -04:00
gdkscreen-quartz.h Change FSF Address 2012-02-27 17:06:11 +00:00
gdkselection-quartz.c quartz: move atom/pasteboard type conversions functions to GDK 2013-03-28 13:10:38 +01:00
gdktestutils-quartz.c Change FSF Address 2012-02-27 17:06:11 +00:00
gdkutils-quartz.c Move get_key_equivalent() to gdk quartz utils. 2014-01-08 17:42:19 -05:00
gdkvisual-quartz.c Change FSF Address 2012-02-27 17:06:11 +00:00
gdkwindow-quartz.c gdkwindow: Remove the internal cairo_surface used for out-of-band painting 2014-06-20 20:41:54 -04:00
gdkwindow-quartz.h quartz: implement gdk_window_set_shadow_width() 2014-01-06 15:27:28 -05:00
Makefile.am New visibility handling in gdk 2013-05-05 15:38:48 -04:00
xcursors.h Fallback to X cursors for the ones that OS X doesn't provide. Fixes bug 2007-06-25 19:43:22 +00:00