gdk: Remove unused GL setting

This commit is contained in:
Benjamin Otte 2018-04-14 02:10:36 +02:00
parent 813e9c95fb
commit a6553b0e20
3 changed files with 0 additions and 13 deletions

View File

@ -145,7 +145,6 @@ gdk_cairo_context_begin_frame (GdkDrawContext *draw_context,
sx = sy = 1;
cairo_surface_get_device_scale (surface->current_paint.surface, &sx, &sy);
cairo_surface_set_device_offset (surface->current_paint.surface, -clip_box.x*sx, -clip_box.y*sy);
gdk_cairo_surface_mark_as_direct (surface->current_paint.surface, surface);
surface->current_paint.surface_needs_composite = TRUE;
}

View File

@ -26,16 +26,6 @@
#include <math.h>
#include <string.h>
static cairo_user_data_key_t direct_key;
void
gdk_cairo_surface_mark_as_direct (cairo_surface_t *cairo_surface,
GdkSurface *surface)
{
cairo_surface_set_user_data (cairo_surface, &direct_key,
g_object_ref (surface), g_object_unref);
}
static const char *
get_vertex_type_name (int type)
{

View File

@ -285,8 +285,6 @@ void gdk_gl_texture_quads (GdkGLContext *paint_context,
void gdk_cairo_surface_paint_pixbuf (cairo_surface_t *surface,
const GdkPixbuf *pixbuf);
void gdk_cairo_surface_mark_as_direct (cairo_surface_t *cairo_surface,
GdkSurface *surface);
cairo_region_t *gdk_cairo_region_from_clip (cairo_t *cr);
void gdk_cairo_set_drawing_context (cairo_t *cr,