gtk2/gdk/win32
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
..
rc Fix windres invocation 2012-06-19 12:16:15 +08:00
bdfcursor.c Change FSF Address 2012-02-27 17:06:11 +00:00
cursor.bdf Committing changes to the source bdf font file that I forgot to commit 2007-08-17 03:40:39 +00:00
gdkcursor-win32.c GDK/GTK on Windows: Fix build 2013-08-26 10:29:23 +08:00
gdkdevice-virtual.c GDK-Win32: Ensure sources use UNIX line endings 2013-12-04 08:57:43 +08:00
gdkdevice-virtual.h GDK-Win32: Ensure sources use UNIX line endings 2013-12-04 08:57:43 +08:00
gdkdevice-win32.c Win32 : fixes Bug 679019 (Popup menu misplaced in dual monitor) 2013-11-01 17:59:05 +01:00
gdkdevice-win32.h Change FSF Address 2012-02-27 17:06:11 +00:00
gdkdevice-wintab.c GDK/GTK on Windows: Fix build 2013-08-26 10:29:23 +08:00
gdkdevice-wintab.h win32: Fix up wintab support 2012-04-03 11:37:42 +02:00
gdkdevicemanager-win32.c GdkWin32: Avoid Using Deprecated API 2013-08-14 08:03:19 +08:00
gdkdevicemanager-win32.h win32: Fix up wintab support 2012-04-03 11:37:42 +02:00
gdkdisplay-win32.c GDK/GTK on Windows: Fix build 2013-08-26 10:29:23 +08:00
gdkdisplaymanager-win32.c win32: Call windowing init from display_class_init() 2013-05-02 15:36:41 +02:00
gdkdnd-win32.c docs: use apostrophes in *n't 2014-02-07 13:32:47 -05:00
gdkevents-win32.c W32: correctly guess max window size from the size of the workarea of the screen it's on 2014-04-16 22:39:56 +00:00
gdkgeometry-win32.c Change FSF Address 2012-02-27 17:06:11 +00:00
gdkglobals-win32.c Change FSF Address 2012-02-27 17:06:11 +00:00
gdkinput.c win32: Fix up wintab support 2012-04-03 11:37:42 +02:00
gdkkeys-win32.c gdk/win32: VK_SNAPSHOT maps to GDK_Print 2014-04-24 16:31:09 +02:00
gdkmain-win32.c Revert "W32: Implement composition check for GDK" 2014-04-10 17:58:58 +00:00
gdkprivate-win32.h Revert "W32: Implement composition check for GDK" 2014-04-10 17:58:58 +00:00
gdkproperty-win32.c Use Adwaita on Windows too 2014-06-13 16:49:59 -04:00
gdkscreen-win32.c Revert "W32: RGBA GDK backend (broken)" 2014-04-10 17:59:48 +00:00
gdkselection-win32.c gdkselection-win32.c: Declare Variables At Top Of Block 2014-05-16 12:25:36 +08:00
gdktestutils-win32.c GDK-Win32: Avoid Redefinition of _GDK_EXTERN 2013-05-31 12:01:26 +08:00
gdkvisual-win32.c Revert "W32: RGBA GDK backend (broken)" 2014-04-10 17:59:48 +00:00
gdkwin32.h Bug 702144: Make gdkwin32.h a pure include-only header 2013-08-14 08:13:32 +08:00
gdkwin32cursor.h Add GDK_AVAILABLE_IN_ALL annotations in gdk 2013-05-05 15:38:46 -04:00
gdkwin32display.h Add GDK_AVAILABLE_IN_ALL annotations in gdk 2013-05-05 15:38:46 -04:00
gdkwin32displaymanager.h Add GDK_AVAILABLE_IN_ALL annotations in gdk 2013-05-05 15:38:46 -04:00
gdkwin32dnd.h Add GDK_AVAILABLE_IN_ALL annotations in gdk 2013-05-05 15:38:46 -04:00
gdkwin32id.c Change FSF Address 2012-02-27 17:06:11 +00:00
gdkwin32keys.h Add GDK_AVAILABLE_IN_ALL annotations in gdk 2013-05-05 15:38:46 -04:00
gdkwin32misc.h GDK/GTK on Windows: Fix build 2013-08-26 10:29:23 +08:00
gdkwin32screen.h Add GDK_AVAILABLE_IN_ALL annotations in gdk 2013-05-05 15:38:46 -04:00
gdkwin32window.h Add GDK_AVAILABLE_IN_ALL annotations in gdk 2013-05-05 15:38:46 -04:00
gdkwindow-win32.c gdkwindow: Remove the internal cairo_surface used for out-of-band painting 2014-06-20 20:41:54 -04:00
gdkwindow-win32.h win32: Remove some unused input stuff to make win32 build again 2012-03-06 12:04:36 +01:00
libwntab32x.la
Makefile.am Bug 702144: Make gdkwin32.h a pure include-only header 2013-08-14 08:13:32 +08:00
makefile.msc win32: gdk3 resurrection 2011-01-02 13:33:04 +01:00
pktdef.h Build Wintab support always on Windows. Don't require the Wintab SDK. 2007-01-19 01:55:52 +00:00
wintab.h Build Wintab support always on Windows. Don't require the Wintab SDK. 2007-01-19 01:55:52 +00:00
xcursors.h Bug 544684 - Win64 issue, window handles are assumed to be 32-bit 2008-08-04 23:21:36 +00:00