gtk2/gdk/quartz
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
..
gdkcairocontext-quartz.c gdk: Add Cairo context implementations for all backends 2018-04-24 23:16:12 +02:00
gdkcairocontext-quartz.h gdk: Add Cairo context implementations for all backends 2018-04-24 23:16:12 +02:00
gdkcursor-quartz.c gdk: Remove ability to download a cursor 2017-11-04 00:07:13 +01:00
gdkdevice-core-quartz.c GdkSurface: Rename various functions and variables 2018-03-20 12:05:26 +01:00
gdkdevicemanager-core-quartz.c quartz: Stop deriving from GdkDeviceManager 2017-11-25 11:04:15 -05:00
gdkdevicemanager-core-quartz.h quartz: Stop deriving from GdkDeviceManager 2017-11-25 11:04:15 -05:00
gdkdisplay-quartz.c gdk: Add Cairo context implementations for all backends 2018-04-24 23:16:12 +02:00
gdkdisplay-quartz.h GdkSurface: Rename various functions and variables 2018-03-20 12:05:26 +01:00
gdkdisplaymanager-quartz.c Remove framework initialization code 2013-05-10 17:25:58 -07:00
gdkdnd-quartz.c GdkSurface: Rename various functions and variables 2018-03-20 12:05:26 +01:00
gdkdnd-quartz.h Fix attempted inclusion of local headers with system brackets. 2013-04-22 15:48:34 -07:00
gdkeventloop-quartz.c Drop the Big GDK Lock 2018-02-03 12:07:10 +01:00
gdkevents-quartz.c Continue renaming window to surface 2018-03-21 11:49:14 +01:00
gdkglcontext-quartz.c GdkWindow -> GdkSurface initial type rename 2018-03-20 11:40:08 +01:00
gdkglcontext-quartz.h GdkWindow -> GdkSurface: File renames 2018-03-20 11:46:11 +01:00
gdkglobals-quartz.c GdkWindow -> GdkSurface initial type rename 2018-03-20 11:40:08 +01:00
gdkkeys-quartz.c Bug 736125 - The default gtk accelerator mod mask does not include all default backend modifiers 2015-08-25 15:54:58 -04:00
gdkmonitor-quartz.c quartz: Stop using gdk_display_get_default_screen 2017-11-01 19:44:28 -04:00
gdkmonitor-quartz.h quartz: code cleanup 2017-04-01 16:45:37 -04:00
gdkprivate-quartz.h Fix up indentation after GdkSurface rename 2018-03-21 09:06:31 +01:00
gdkquartz.h GdkWindow -> GdkSurface: File renames 2018-03-20 11:46:11 +01: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 macos: export gdk_quartz_drag_source_context() 2018-03-01 14:36:44 +01:00
gdkquartzkeys.h Add GDK_AVAILABLE_IN_ALL annotations in gdk 2013-05-05 15:38:46 -04:00
gdkquartzmonitor.h The big versioning cleanup 2018-02-06 01:16:32 -05:00
GdkQuartzNSWindow.c Continue renaming window to surface 2018-03-21 11:49:14 +01:00
GdkQuartzNSWindow.h GdkWindow -> GdkSurface initial type rename 2018-03-20 11:40:08 +01:00
gdkquartzscreen.h quartz: Make GdkQuartzScreen a plain object 2017-11-17 13:47:15 -05:00
gdkquartzsurface.h GdkWindow -> GdkSurface: File renames 2018-03-20 11:46:11 +01:00
gdkquartzutils.h The big versioning cleanup 2018-02-06 01:16:32 -05:00
GdkQuartzView.c Continue renaming window to surface 2018-03-21 11:49:14 +01:00
GdkQuartzView.h Continue renaming window to surface 2018-03-21 11:49:14 +01:00
gdkscreen-quartz.c GdkWindow -> GdkSurface: File renames 2018-03-20 11:46:11 +01:00
gdkscreen-quartz.h quartz: Make GdkQuartzScreen a plain object 2017-11-17 13:47:15 -05:00
gdkselection-quartz.c Drop gdk_atom_intern 2017-12-13 23:39:03 -05:00
gdksurface-quartz.c gdk: Remove GdkSurfaceImpl::shape_combine_region vfunc 2018-03-21 23:28:26 +01:00
gdksurface-quartz.h GdkSurface: Rename various functions and variables 2018-03-20 12:05:26 +01:00
gdkutils-quartz.c Move get_key_equivalent() to gdk quartz utils. 2014-01-08 17:42:19 -05:00
meson.build gdk: Add Cairo context implementations for all backends 2018-04-24 23:16:12 +02:00
xcursors.h