surface: Remove gdk_surface_get_clip_region()
authorBenjamin Otte <otte@redhat.com>
Wed, 21 Mar 2018 01:57:48 +0000 (02:57 +0100)
committerBenjamin Otte <otte@redhat.com>
Wed, 21 Mar 2018 03:10:07 +0000 (04:10 +0100)
... and gdk_surface_get_visible_region() APIs. They are unused.

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

index 3c3280f33f9eb8ffbf4ab9a309ee8303387dece7..e3383e9c306d86f7d1d9c167ce83762eb059b87c 100644 (file)
@@ -235,10 +235,8 @@ gdk_surface_create_gl_context
 gdk_surface_create_vulkan_context
 
 <SUBSECTION>
-gdk_surface_get_clip_region
 gdk_surface_begin_draw_frame
 gdk_surface_end_draw_frame
-gdk_surface_get_visible_region
 
 <SUBSECTION>
 gdk_surface_invalidate_rect
index b11b884753aedb46adb1ef20a821840ce80f74c0..e93cb64925eeb59a2fd48ca5028bfa8508a319f1 100644 (file)
@@ -1976,54 +1976,6 @@ gdk_surface_get_drawing_context (GdkSurface *surface)
   return surface->drawing_context;
 }
 
-/**
- * gdk_surface_get_clip_region:
- * @surface: a #GdkSurface
- * 
- * Computes the region of a surface that potentially can be written
- * to by drawing primitives. This region may not take into account
- * other factors such as if the surface is obscured by other surfaces,
- * but no area outside of this region will be affected by drawing
- * primitives.
- * 
- * Returns: a #cairo_region_t. This must be freed with cairo_region_destroy()
- *          when you are done.
- **/
-cairo_region_t*
-gdk_surface_get_clip_region (GdkSurface *surface)
-{
-  cairo_region_t *result;
-
-  g_return_val_if_fail (GDK_SURFACE (surface), NULL);
-
-  result = cairo_region_copy (surface->clip_region);
-
-  if (surface->current_paint.region != NULL)
-    cairo_region_intersect (result, surface->current_paint.region);
-
-  return result;
-}
-
-/**
- * gdk_surface_get_visible_region:
- * @surface: a #GdkSurface
- * 
- * Computes the region of the @surface that is potentially visible.
- * This does not necessarily take into account if the surface is
- * obscured by other surfaces, but no area outside of this region
- * is visible.
- * 
- * Returns: a #cairo_region_t. This must be freed with cairo_region_destroy()
- *          when you are done.
- **/
-cairo_region_t *
-gdk_surface_get_visible_region (GdkSurface *surface)
-{
-  g_return_val_if_fail (GDK_IS_SURFACE (surface), NULL);
-
-  return cairo_region_copy (surface->clip_region);
-}
-
 static void
 gdk_surface_clear_backing_region (GdkSurface *surface)
 {
index 3f19c746eac497629ecb08b2c38943bd3058378c..8ea5cfaa93acb3f57546377dff991cf37eafbc49 100644 (file)
@@ -608,11 +608,6 @@ void          gdk_surface_set_geometry_hints (GdkSurface          *surface,
                                             const GdkGeometry  *geometry,
                                             GdkSurfaceHints      geom_mask);
 
-GDK_AVAILABLE_IN_ALL
-cairo_region_t *gdk_surface_get_clip_region  (GdkSurface          *surface);
-GDK_AVAILABLE_IN_ALL
-cairo_region_t *gdk_surface_get_visible_region(GdkSurface         *surface);
-
 GDK_AVAILABLE_IN_ALL
 GdkDrawingContext *gdk_surface_begin_draw_frame  (GdkSurface            *surface,
                                                  GdkDrawContext       *context,