From c63f54b7a7c2aed397c4228946611418ebe00234 Mon Sep 17 00:00:00 2001 From: Adam Jackson Date: Thu, 24 Oct 2019 16:29:57 -0400 Subject: [PATCH] cogl: Remove unused cogl_texture_pixmap_x11_set_damage_object https://gitlab.gnome.org/GNOME/mutter/merge_requests/885 --- cogl/cogl/winsys/cogl-texture-pixmap-x11.c | 17 --------------- cogl/cogl/winsys/cogl-texture-pixmap-x11.h | 25 ---------------------- 2 files changed, 42 deletions(-) diff --git a/cogl/cogl/winsys/cogl-texture-pixmap-x11.c b/cogl/cogl/winsys/cogl-texture-pixmap-x11.c index b7eafab64..98028c93c 100644 --- a/cogl/cogl/winsys/cogl-texture-pixmap-x11.c +++ b/cogl/cogl/winsys/cogl-texture-pixmap-x11.c @@ -566,23 +566,6 @@ cogl_texture_pixmap_x11_is_using_tfp_extension (CoglTexturePixmapX11 *tex_pixmap return !!tex_pixmap->winsys; } -void -cogl_texture_pixmap_x11_set_damage_object (CoglTexturePixmapX11 *tex_pixmap, - uint32_t damage, - CoglTexturePixmapX11ReportLevel - report_level) -{ - int damage_base; - - _COGL_GET_CONTEXT (ctxt, NO_RETVAL); - - g_return_if_fail (tex_pixmap->stereo_mode != COGL_TEXTURE_PIXMAP_RIGHT); - - damage_base = _cogl_xlib_get_damage_base (); - if (damage_base >= 0) - set_damage_object_internal (ctxt, tex_pixmap, damage, report_level); -} - static CoglTexture * create_fallback_texture (CoglContext *ctx, int width, diff --git a/cogl/cogl/winsys/cogl-texture-pixmap-x11.h b/cogl/cogl/winsys/cogl-texture-pixmap-x11.h index 844f0cd83..a445fca46 100644 --- a/cogl/cogl/winsys/cogl-texture-pixmap-x11.h +++ b/cogl/cogl/winsys/cogl-texture-pixmap-x11.h @@ -229,31 +229,6 @@ cogl_texture_pixmap_x11_update_area (CoglTexturePixmapX11 *texture, gboolean cogl_texture_pixmap_x11_is_using_tfp_extension (CoglTexturePixmapX11 *texture); -/** - * cogl_texture_pixmap_x11_set_damage_object: - * @texture: A #CoglTexturePixmapX11 instance - * @damage: A X11 Damage object or 0 - * @report_level: The report level which describes how to interpret - * the damage events. This should match the level that the damage - * object was created with. - * - * Sets the damage object that will be used to track automatic updates - * to the @texture. Damage tracking can be disabled by passing 0 for - * @damage. Otherwise this damage will replace the one used if %TRUE - * was passed for automatic_updates to cogl_texture_pixmap_x11_new(). - * - * Note that Cogl will subtract from the damage region as it processes - * damage events. - * - * Since: 1.4 - * Stability: Unstable - */ -void -cogl_texture_pixmap_x11_set_damage_object (CoglTexturePixmapX11 *texture, - uint32_t damage, - CoglTexturePixmapX11ReportLevel - report_level); - /** * cogl_is_texture_pixmap_x11: * @object: A pointer to a #CoglObject