forked from AuroraMiddleware/gtk
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().
This commit is contained in:
parent
4d481ecb95
commit
e7d6648f46
@ -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
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user