gtk/gdk/broadway
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
..
broadway-buffer.c broadway: make sure color/delta run length do not overflow 2014-03-21 21:45:04 +01:00
broadway-buffer.h Switch from sending png frames to our own encoding 2013-11-07 14:09:53 +01:00
broadway-output.c broadway: Support ipad on-screen keyboard 2013-11-13 12:23:06 +01:00
broadway-output.h broadway: Support ipad on-screen keyboard 2013-11-13 12:23:06 +01:00
broadway-protocol.h broadway: Improve touch events 2013-11-14 11:05:16 +01:00
broadway-server.c broadway: remove unused libcrypt 2014-03-12 00:17:09 -04:00
broadway-server.h broadway: Improve touch events 2013-11-14 11:05:16 +01:00
broadway.js broadway: Improve touch events 2013-11-14 11:05:16 +01:00
broadwayd.c broadway: Support ipad on-screen keyboard 2013-11-13 12:23:06 +01:00
client.html broadway: Disable all kinds of viewport scrolling and zooming 2013-11-12 13:44:56 +01:00
gdkbroadway-server.c broadway backend: allow building on OpenBSD 2014-04-18 18:20:34 +02:00
gdkbroadway-server.h broadway: Support ipad on-screen keyboard 2013-11-13 12:23:06 +01:00
gdkbroadway.h broadway: Add gdkbroadwaydisplay.h include 2013-11-07 14:09:53 +01:00
gdkbroadwaycursor.h Add GDK_AVAILABLE_IN_ALL annotations in gdk 2013-05-05 15:38:46 -04:00
gdkbroadwaydisplay.h broadway: Support ipad on-screen keyboard 2013-11-13 12:23:06 +01:00
gdkbroadwaydisplaymanager.h Add GDK_AVAILABLE_IN_ALL annotations in gdk 2013-05-05 15:38:46 -04:00
gdkbroadwayvisual.h Add GDK_AVAILABLE_IN_ALL annotations in gdk 2013-05-05 15:38:46 -04:00
gdkbroadwaywindow.h Add GDK_AVAILABLE_IN_ALL annotations in gdk 2013-05-05 15:38:46 -04:00
gdkcursor-broadway.c gdk: Add gdk_cursor_new_from_surface 2013-08-07 13:34:10 +02:00
gdkdevice-broadway.c gdk: Convert mouse position to doubles, add new getters 2013-07-03 14:39:25 +02:00
gdkdevice-broadway.h Change FSF Address 2012-02-27 17:06:11 +00:00
gdkdevicemanager-broadway.c broadway: Add initial touch event support 2013-11-12 16:11:15 +01:00
gdkdevicemanager-broadway.h broadway: Add initial touch event support 2013-11-12 16:11:15 +01:00
gdkdisplay-broadway.c broadway: Print a useful error message 2014-03-05 21:03:36 +01:00
gdkdisplay-broadway.h broadway: Improve touch events 2013-11-14 11:05:16 +01:00
gdkdnd-broadway.c Change FSF Address 2012-02-27 17:06:11 +00:00
gdkeventsource.c broadway: Improve touch events 2013-11-14 11:05:16 +01:00
gdkeventsource.h Change FSF Address 2012-02-27 17:06:11 +00:00
gdkglobals-broadway.c Change FSF Address 2012-02-27 17:06:11 +00:00
gdkkeys-broadway.c Broadway: Allow Compilation on Windows/MSVC 2013-07-01 14:51:03 +02:00
gdkprivate-broadway.h gdk: Add gdk_cursor_new_from_surface 2013-08-07 13:34:10 +02:00
gdkproperty-broadway.c gdk: Make atoms handled generically 2013-04-15 15:43:27 +02:00
gdkscreen-broadway.c broadway: Simplify frame handling and make it ARGB32 2013-11-07 14:09:53 +01:00
gdkscreen-broadway.h Change FSF Address 2012-02-27 17:06:11 +00:00
gdkselection-broadway.c Change FSF Address 2012-02-27 17:06:11 +00:00
gdktestutils-broadway.c Change FSF Address 2012-02-27 17:06:11 +00:00
gdkvisual-broadway.c Change FSF Address 2012-02-27 17:06:11 +00:00
gdkwindow-broadway.c gdkwindow: Remove the internal cairo_surface used for out-of-band painting 2014-06-20 20:41:54 -04:00
gdkwindow-broadway.h broadway: Limit window resize based on window geometry 2013-03-29 14:09:47 +01:00
Makefile.am broadway backend: allow building on OpenBSD 2014-04-18 18:20:34 +02:00
rawinflate.min.js broadway: Use zlib compression for broadway buffers 2013-11-07 14:09:53 +01:00
toarray.pl broadway: Use zlib compression for broadway buffers 2013-11-07 14:09:53 +01:00
TODO.broadway broadway: Make /dev/shm names nicer 2013-01-10 23:59:23 +01:00