gtk2/gdk/mir
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
..
gdkmir-debug.c mir: fix warnings 2016-02-24 13:24:14 -05:00
gdkmir-private.h gdk: Make GdkDrawingContext not per-backend 2016-11-30 15:52:22 +01:00
gdkmir.h mir: Add C++ guards 2016-02-11 12:01:39 +00:00
gdkmircursor.c mir: rework cursors a bit 2014-11-06 16:18:53 -05:00
gdkmirdevicemanager.c gdk: remove the core_pointer field from GdkDisplay 2016-02-29 14:15:04 +01:00
gdkmirdisplay.c API: Remove gdk_window_process_all_updates() 2016-11-23 19:10:34 +01:00
gdkmireventsource.c Do not filter out small scroll event fractions 2016-09-26 11:49:56 -04:00
gdkmirglcontext.c gdk: Large GL refactoring 2016-12-05 15:02:47 +01:00
gdkmirkeyboard.c
gdkmirkeymap.c gdkkeys: Add support to _get_scroll_lock_state() 2015-04-27 20:07:52 -03:00
gdkmirpointer.c mir: end the current grab on ungrab 2015-02-05 17:26:18 +01:00
gdkmirscreen.c mir: fix build failures 2016-11-27 21:31:21 -05:00
gdkmirwindow.c
gdkmirwindowimpl.c gdk: Large GL refactoring 2016-12-05 15:02:47 +01:00
Makefile.am gdk: Make GdkDrawingContext not per-backend 2016-11-30 15:52:22 +01:00