gdk: Remove gdk_gl_context_get_damage()
authorBenjamin Otte <otte@redhat.com>
Fri, 20 Apr 2018 15:04:36 +0000 (17:04 +0200)
committerBenjamin Otte <otte@redhat.com>
Tue, 24 Apr 2018 21:16:58 +0000 (23:16 +0200)
Remove it only form public API, because we still use the vfunc to figure
out the damage area in begin_frame().

docs/reference/gdk/gdk4-sections.txt
gdk/gdkglcontext.c
gdk/gdkglcontext.h

index c59224ac15b9a73e0cfa31eb4c649682a06b9fab..ebe7c37850fd3119f1758187d9f79362b538f0ed 100644 (file)
@@ -1139,7 +1139,6 @@ gdk_gl_context_is_legacy
 <SUBSECTION>
 GdkGLError
 gdk_gl_context_realize
-gdk_gl_context_get_damage
 gdk_gl_context_make_current
 gdk_gl_context_get_current
 gdk_gl_context_clear_current
index 07f25aadfbc1283e1853edc2eea097ebced71461..d60f8e2b4c087a5ca592ec02a1a9e1c38eeff6bb 100644 (file)
@@ -305,7 +305,7 @@ gdk_gl_context_real_begin_frame (GdkDrawContext *draw_context,
       return;
     }
 
-  damage = gdk_gl_context_get_damage (context);
+  damage = GDK_GL_CONTEXT_GET_CLASS (context)->get_damage (context);
   cairo_region_union (region, damage);
   cairo_region_destroy (damage);
 
@@ -396,24 +396,6 @@ gdk_gl_context_init (GdkGLContext *self)
   priv->use_es = -1;
 }
 
-/**
- * gdk_gl_context_get_damage:
- * @context: a #GdkGLContext
- *
- * Returns the part of the backbuffer that is known to be damaged and would
- * need to be redrawn. This is the area that needs to be respected in addition
- * to areas invalidated by GTK or the windowing system itself.
- *
- * Returns: The damage to the backbuffer
- **/
-cairo_region_t *
-gdk_gl_context_get_damage (GdkGLContext *context)
-{
-  g_return_val_if_fail (GDK_IS_GL_CONTEXT (context), cairo_region_create ());
-
-  return GDK_GL_CONTEXT_GET_CLASS (context)->get_damage (context);
-}
-
 GdkGLContextPaintData *
 gdk_gl_context_get_paint_data (GdkGLContext *context)
 {
index 45d4f3d58a967288d1ab16de50d1f3a4c224b620..83585fbe25ae81ae5434074dfb91f5205112e3cc 100644 (file)
@@ -82,8 +82,6 @@ gboolean                gdk_gl_context_get_use_es               (GdkGLContext  *
 GDK_AVAILABLE_IN_ALL
 gboolean                gdk_gl_context_realize                  (GdkGLContext  *context,
                                                                  GError       **error);
-GDK_AVAILABLE_IN_ALL
-cairo_region_t *        gdk_gl_context_get_damage               (GdkGLContext  *context);
 
 GDK_AVAILABLE_IN_ALL
 void                    gdk_gl_context_make_current             (GdkGLContext  *context);