gtk/gdk/broadway
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
..
broadway-output.c broadway: Use "surface" instead of window/toplevel for browser object 2017-12-05 15:50:34 +01:00
broadway-output.h broadway: Use "surface" instead of window/toplevel for browser object 2017-12-05 15:50:34 +01:00
broadway-protocol.h broadway: Use "surface" instead of window/toplevel for browser object 2017-12-05 15:50:34 +01:00
broadway-server.c broadway: Use correct type in assignment 2017-12-21 18:42:26 +00:00
broadway-server.h broadway: Use "surface" instead of window/toplevel for browser object 2017-12-05 15:50:34 +01:00
broadway.js broadway: Use "surface" instead of window/toplevel for browser object 2017-12-05 15:50:34 +01:00
broadwayd.c broadway: Use "surface" instead of window/toplevel for browser object 2017-12-05 15:50:34 +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: Make the use of next_texture_id clearer 2017-12-05 15:54:36 +01:00
gdkbroadway-server.h broadway: Use "surface" instead of window/toplevel for browser object 2017-12-05 15:50:34 +01:00
gdkbroadway.h GdkWindow -> GdkSurface: File renames 2018-03-20 11:46:11 +01:00
gdkbroadwaycursor.h
gdkbroadwaydisplay.h The big versioning cleanup 2018-02-06 01:16:32 -05:00
gdkbroadwaydisplaymanager.h
gdkbroadwaymonitor.h The big versioning cleanup 2018-02-06 01:16:32 -05:00
gdkbroadwaysurface.h broadway: Fix up window -> surface renames 2018-03-21 09:17:50 +01:00
gdkcairocontext-broadway.c gdk: Add Cairo context implementations for all backends 2018-04-24 23:16:12 +02:00
gdkcairocontext-broadway.h gdk: Add Cairo context implementations for all backends 2018-04-24 23:16:12 +02:00
gdkcursor-broadway.c gdk: Drop some unused cursor apis 2018-01-16 23:32:01 -05:00
gdkdevice-broadway.c broadway: Fix up window -> surface renames 2018-03-21 09:17:50 +01:00
gdkdevice-broadway.h
gdkdisplay-broadway.c gdk: Add Cairo context implementations for all backends 2018-04-24 23:16:12 +02:00
gdkdisplay-broadway.h GdkWindow -> GdkSurface: File renames 2018-03-20 11:46:11 +01:00
gdkdnd-broadway.c broadway: Fix up window -> surface renames 2018-03-21 09:17:50 +01:00
gdkeventsource.c broadway: Fix up window -> surface renames 2018-03-21 09:17:50 +01:00
gdkeventsource.h Fix some oversights with header guards 2014-12-08 19:31:56 -05:00
gdkglobals-broadway.c
gdkkeys-broadway.c gdkkeys: Add support to _get_scroll_lock_state() 2015-04-27 20:07:52 -03:00
gdkmonitor-broadway.c broadway: No more screen 2017-11-01 19:44:28 -04:00
gdkmonitor-broadway.h broadway: Port to new monitor api 2016-04-27 23:18:16 -04:00
gdkprivate-broadway.h broadway: Fix up window -> surface renames 2018-03-21 09:17:50 +01:00
gdkselection-broadway.c Drop gdk_atom_intern 2017-12-13 23:39:03 -05:00
gdksurface-broadway.c gdk: Remove GdkSurfaceImpl::shape_combine_region vfunc 2018-03-21 23:28:26 +01:00
gdksurface-broadway.h gdk: Remove a bunch of unused variables 2018-03-21 23:28:26 +01:00
gen-c-array.py Rewrite toarray Perl script to Python 2018-02-14 15:51:45 +00:00
meson.build gdk: Add Cairo context implementations for all backends 2018-04-24 23:16:12 +02:00
TODO.broadway