mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-11 03:10:09 +00:00
e38bd27d58
Reenable GL drawing, but do it without Cairo. Now, the context passed to gdk_window_begin_draw_frame() decides how drawing is going to happen. If it is NULL, Cairo is used like before. If a context is passed, Cairo may not be used for drawing and gdk_drawing_context_get_cairo_context() is going to return NULL. Instead, the GL renderer must draw to the GL backbuffer and end_draw_frame() is then swapping that to the front. The GskGLRenderer has lost the texture it used to render to and adapted to render directly to the backbuffer instead. The only thing missing is for GtkGLArea to gain back a performant way to render. But it didn't have one since the introduction of GSK, this patchset doesn't change anything about it. The new rendering avoids two indirections (the GSK renderer's texture and the GDK double buffering surface). It improves icon count in the fishbowl demo by 30%. |
||
---|---|---|
.. | ||
resources/glsl | ||
gsk.h | ||
gskcairorenderer.c | ||
gskcairorendererprivate.h | ||
gskdebug.c | ||
gskdebugprivate.h | ||
gskenums.h | ||
gskenumtypes.c.template | ||
gskenumtypes.h.template | ||
gskgldriver.c | ||
gskgldriverprivate.h | ||
gskglprofiler.c | ||
gskglprofilerprivate.h | ||
gskglrenderer.c | ||
gskglrendererprivate.h | ||
gskprivate.c | ||
gskprivate.h | ||
gskprofiler.c | ||
gskprofilerprivate.h | ||
gskrenderer.c | ||
gskrenderer.h | ||
gskrendererprivate.h | ||
gskrendernode.c | ||
gskrendernode.h | ||
gskrendernodeiter.c | ||
gskrendernodeiter.h | ||
gskrendernodeprivate.h | ||
gskshaderbuilder.c | ||
gskshaderbuilderprivate.h | ||
gsktexture.c | ||
gsktexture.h | ||
gsktextureprivate.h | ||
gsktypes.h | ||
Makefile.am |