gtk2/gdk/wayland
Benjamin Otte 813e9c95fb gdk: Add Cairo context implementations for all backends
And make the GdkCairoContext as abstract.

The idea of this and thje following commits is to get rid of all
Cairo code in gdksurface.c (and $backend/gdksurface-$backend.c)
by moving that code into the Cairo context files.
In particular, the GdkSurfaceClass.begin_frame/end_frame()
functions (which are currently exclusively used by the Cairo code
should end up being moved to GdkDrawContextClass.begin/end_frame().

This has multiple benefits:

1. It unifies code between the different drawing contexts.
   GL lives in GLContext, Vulkan in VulkanContext and Cairo in
   CairoContext. In turn, this makes it way easier to reason about
   what's going on in surface-specific code. Currently pretty much
   all backends do things wrong when they want to sync to drawing
   or to the frame clock.

2. It makes the API of GdkSurface smaller. No drawing code (apart
   from creating the contexts) needs to remain.

3. It confines Cairo to the Drawcontext, thereby making it way
   more obvious when backends are still using it in situations
   where it may now conflict with OpenGL (like when doing the dnd
   failed animation or in the APIs that I'm removing in this
   branch).

4. We have 2 very different types of Cairo contexts: The X/win32
   model, where we have a natively supported Cairo backend but do
   double buffering ourselves and use similar surfaces and the
   Wayland/Broadway model where we use image surfaces without any
   Cairo backend support and have to submit the buffers manually.
   By not sharing code between those 2 versions, we can make the
   actual code way smaller. We also get around the need to create
   1x1 image surfaces in the Wayland backend where we pretend
   there's a native Cairo surface.
2018-04-24 23:16:12 +02:00
..
protocol Wayland: Implement KDE's SSD protocol 2017-10-26 15:51:56 -04:00
gdkapplaunchcontext-wayland.c Drop gdk_app_launch_context_set_screen 2017-10-30 23:01:34 -04:00
gdkcairocontext-wayland.c gdk: Add Cairo context implementations for all backends 2018-04-24 23:16:12 +02:00
gdkcairocontext-wayland.h gdk: Add Cairo context implementations for all backends 2018-04-24 23:16:12 +02:00
gdkclipboard-wayland.c wayland: Use g_message for logging 2018-01-14 17:05:04 -05:00
gdkclipboard-wayland.h wayland: Implement reading the clipboard 2017-12-03 05:46:49 +01:00
gdkcursor-wayland.c gdk: Drop some unused cursor apis 2018-01-16 23:32:01 -05:00
gdkdevice-wayland.c GdkSurface: Rename lots of stuff from window->surface 2018-03-20 15:14:10 +01:00
gdkdisplay-wayland.c gdk: Add Cairo context implementations for all backends 2018-04-24 23:16:12 +02:00
gdkdisplay-wayland.h GdkWindow -> GdkSurface: File renames 2018-03-20 11:46:11 +01:00
gdkdnd-wayland.c surface: Simplify gdk_surface_invalidate_region() 2018-03-21 04:10:07 +01:00
gdkeventsource.c Drop the Big GDK Lock 2018-02-03 12:07:10 +01:00
gdkglcontext-wayland.c wayland: Factor out frame timings request code 2018-04-10 15:13:38 +02:00
gdkglcontext-wayland.h GdkSurface: Rename lots of stuff from window->surface 2018-03-20 15:14:10 +01:00
gdkkeys-wayland.c wayland: Use g_message for logging 2018-01-14 17:05:04 -05:00
gdkmonitor-wayland.c The big versioning cleanup 2018-02-06 01:16:32 -05:00
gdkmonitor-wayland.h wayland: Port to new monitor api 2016-04-27 23:18:16 -04:00
gdkprimary-wayland.c Allow binding GdkContentFormatsBuilder 2018-02-03 16:24:13 +01:00
gdkprimary-wayland.h wayland: Add primary clipboard subclass 2017-12-03 05:46:49 +01:00
gdkprivate-wayland.h wayland: Factor out frame timings request code 2018-04-10 15:13:38 +02:00
gdkseat-wayland.h wayland: Remove GdkWaylandDataDevice typedef 2016-03-21 17:15:59 +01:00
gdkselection-wayland.c GdkSurface: Rename various functions and variables 2018-03-20 12:05:26 +01:00
gdksurface-wayland.c wayland: Allow a NULL inhibitors hash table 2018-04-23 10:57:07 +01:00
gdkvulkancontext-wayland.c wayland: Factor out frame timings request code 2018-04-10 15:13:38 +02:00
gdkvulkancontext-wayland.h The big versioning cleanup 2018-02-06 01:16:32 -05:00
gdkwayland.h GdkWindow -> GdkSurface: File renames 2018-03-20 11:46:11 +01:00
gdkwaylanddevice.h The big versioning cleanup 2018-02-06 01:16:32 -05:00
gdkwaylanddisplay.h gdk/wayland: Use GDK_AVAILABLE_IN_ALL 2018-02-16 19:36:41 +01:00
gdkwaylandglcontext.h The big versioning cleanup 2018-02-06 01:16:32 -05:00
gdkwaylandmonitor.h The big versioning cleanup 2018-02-06 01:16:32 -05:00
gdkwaylandsurface.h Fix up indentation after GdkSurface rename 2018-03-21 09:06:31 +01:00
meson.build gdk: Add Cairo context implementations for all backends 2018-04-24 23:16:12 +02:00
wm-button-layout-translation.c build: Don't turn off critical warnings 2017-10-06 16:03:08 +02:00
wm-button-layout-translation.h gdk: Relicense translate_wm_button_layout_to_gtk() 2017-04-27 21:05:12 +02:00