gtk2/gdk/x11
Benjamin Otte 182d18bcd1 gdk: Large GL refactoring
No visible changes as GL rendering is disabled at the moment.

What was done:

1. Move window->invalidate_for_new_frame to glcontext->begin_frame
This moves the code to where it is used (the GLContext) and prepares it
for being called where it is used when actually beginning to draw the
frame.

2. Get rid of buffer-age usage
We want to let the application render directly to the backbuffer.
Because of that, we cannot make any assumptions about the contents the
application renders outside the clip area.
In particular GskGLRenderer renders random stuff there but not actual
contents.

3. Pass the actual GL context
Previously, we passed the shared context to end_frame, now we pass the
actual GL context that the application uses for rendering. This is so
that the vfuncs could prepare the actual contexts for rendering (they
don't currently).

4. Simplify the code
The previous code set up the final drawing method in begin_frame.
Instead, we now just ensure the clip area is something we can render
and decide on the actual method in end_frame.
This is both more robust (we can change the clip area in between if we
want to) and less code.
2016-12-05 15:02:47 +01:00
..
gdkapplaunchcontext-x11.c API: gdk: Remove gdk_screen_get_number() 2016-10-16 18:17:21 +02:00
gdkasync.c x11: Fix compiler warnings 2015-06-02 09:08:14 -04:00
gdkasync.h
gdkcursor-x11.c x11: Add the same message as the wayland backend has 2016-10-17 19:11:32 -04:00
gdkdevice-core-x11.c Add and use GDK_CHECK_DEBUG macro 2016-02-28 21:40:30 -05:00
gdkdevice-xi2.c gdk: Require passing screen size to translate_screen_coord() 2016-10-16 18:17:21 +02:00
gdkdevicemanager-core-x11.c Make gdk_event_get_pointer_emulated public 2016-05-10 15:16:45 -04:00
gdkdevicemanager-x11.c x11: Don't use g_print for debug output 2016-02-28 21:40:24 -05:00
gdkdevicemanager-xi2.c x11: Fix a trap mixup 2016-08-29 15:51:05 -04:00
gdkdevicemanagerprivate-core.h
gdkdisplay-x11.c API: Remove gdk_window_process_all_updates() 2016-11-23 19:10:34 +01:00
gdkdisplay-x11.h x11: Maointin window visuals without GdkVisual 2016-11-03 23:54:39 +01:00
gdkdisplaymanager-x11.c
gdkdnd-x11.c API: gdk: Add gdk_window_new_popup() 2016-11-06 23:47:56 +01:00
gdkeventsource.c x11: drop a useless list 2016-05-01 13:26:35 -04:00
gdkeventsource.h Fix some oversights with header guards 2014-12-08 19:31:56 -05:00
gdkeventtranslator.c
gdkeventtranslator.h
gdkgeometry-x11.c x11: Remove code that temporarily unsets the background 2016-10-27 06:37:02 +02:00
gdkglcontext-x11.c gdk: Large GL refactoring 2016-12-05 15:02:47 +01:00
gdkglcontext-x11.h gdk: Large GL refactoring 2016-12-05 15:02:47 +01:00
gdkkeys-x11.c x11: Fix compiler warnings 2015-06-02 09:08:14 -04:00
gdkmain-x11.c x11: Don't warn if the display is closed 2016-11-30 13:45:00 -05:00
gdkmonitor-x11.c x11: Port to new monitor api 2016-04-27 23:18:16 -04:00
gdkmonitor-x11.h x11: Port to new monitor api 2016-04-27 23:18:16 -04:00
gdkprivate-x11.h API: Remove gdk_window_process_all_updates() 2016-11-23 19:10:34 +01:00
gdkproperty-x11.c Remove unused variables 2015-06-13 21:10:26 -04:00
gdkscreen-x11.c x11: Init no-multihead monitor without root window 2016-11-04 00:33:13 +01:00
gdkscreen-x11.h x11: Maointin window visuals without GdkVisual 2016-11-03 23:54:39 +01:00
gdkselection-x11.c x11: Use g_error_matches() 2016-03-20 05:43:02 +01:00
gdksettings.c gdk: Add an X setting for gtk-keynav-use-caret 2016-03-04 22:44:29 -05:00
gdktestutils-x11.c
gdkvisual-x11.c gdk: Remove visual APIs from GdkScreen 2016-11-04 00:02:37 +01:00
gdkwindow-x11.c gdk: Large GL refactoring 2016-12-05 15:02:47 +01:00
gdkwindow-x11.h x11: Remove code that temporarily unsets the background 2016-10-27 06:37:02 +02:00
gdkx11applaunchcontext.h
gdkx11cursor.h
gdkx11device-core.h
gdkx11device-xi2.h
gdkx11device.h
gdkx11devicemanager-core.h
gdkx11devicemanager-xi2.h
gdkx11devicemanager-xi.h
gdkx11devicemanager.h
gdkx11display.h
gdkx11displaymanager.h
gdkx11dnd.h
gdkx11glcontext.h GL: Follow naming conventions 2014-10-21 23:48:12 -04:00
gdkx11keys.h
gdkx11monitor.h x11: Port to new monitor api 2016-04-27 23:18:16 -04:00
gdkx11property.h Drop GDK_MULTIHEAD_SAFE 2014-06-11 21:55:15 -04:00
gdkx11screen.h Drop GDK_MULTIHEAD_SAFE 2014-06-11 21:55:15 -04:00
gdkx11selection.h
gdkx11utils.h Drop GDK_MULTIHEAD_SAFE 2014-06-11 21:55:15 -04:00
gdkx11visual.h
gdkx11window.h gdk/x11: Constify argument 2016-10-17 11:10:14 +01:00
gdkx-autocleanups.h gdk: Add support for g_autoptr() 2015-02-02 09:28:22 +01:00
gdkx.h x11: Port to new monitor api 2016-04-27 23:18:16 -04:00
gdkxftdefaults.c Simplify Xft setting fallback 2015-07-07 20:54:16 -04:00
gdkxid.c docs: use Returns: consistently 2014-02-19 18:56:05 -05:00
Makefile.am gdk: Make GdkDrawingContext not per-backend 2016-11-30 15:52:22 +01:00
MwmUtil.h
xsettings-client.c x11: Don't use g_print for debug output 2016-02-28 21:40:24 -05:00
xsettings-client.h Fix font size when gdk_x11_display_set_window_scale() is used 2014-03-06 23:20:00 -05:00