diff options
| author | Benjamin Otte <otte@redhat.com> | 2018-04-20 17:04:36 +0200 |
|---|---|---|
| committer | Benjamin Otte <otte@redhat.com> | 2018-04-24 23:16:58 +0200 |
| commit | e7d6648f4618ec9fb44aa218d6965e1d613718c2 (patch) | |
| tree | 8c30ea9a2f2fdffd8a872b386c21a0cf635f0124 | |
| parent | 4d481ecb95d40fca1325e1c66aadf97c1b586cac (diff) | |
| download | gtk+-e7d6648f4618ec9fb44aa218d6965e1d613718c2.tar.gz | |
gdk: Remove gdk_gl_context_get_damage()
Remove it only form public API, because we still use the vfunc to figure
out the damage area in begin_frame().
| -rw-r--r-- | docs/reference/gdk/gdk4-sections.txt | 1 | ||||
| -rw-r--r-- | gdk/gdkglcontext.c | 20 | ||||
| -rw-r--r-- | gdk/gdkglcontext.h | 2 |
3 files changed, 1 insertions, 22 deletions
diff --git a/docs/reference/gdk/gdk4-sections.txt b/docs/reference/gdk/gdk4-sections.txt index c59224ac15..ebe7c37850 100644 --- a/docs/reference/gdk/gdk4-sections.txt +++ b/docs/reference/gdk/gdk4-sections.txt @@ -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 diff --git a/gdk/gdkglcontext.c b/gdk/gdkglcontext.c index 07f25aadfb..d60f8e2b4c 100644 --- a/gdk/gdkglcontext.c +++ b/gdk/gdkglcontext.c @@ -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) { diff --git a/gdk/gdkglcontext.h b/gdk/gdkglcontext.h index 45d4f3d58a..83585fbe25 100644 --- a/gdk/gdkglcontext.h +++ b/gdk/gdkglcontext.h @@ -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); |
