summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>2023-05-16 18:53:56 -0300
committerMarge Bot <marge-bot@gnome.org>2023-05-17 15:09:45 +0000
commit656ccb4dee9d8236c4e91c1e2fc13b22f8793722 (patch)
tree14d77644cab99bae2e80cca91c023bc087f8dc30
parentf73fdfb4651887bc2520dea226b526b36493dc02 (diff)
downloadmutter-656ccb4dee9d8236c4e91c1e2fc13b22f8793722.tar.gz
cogl/framebuffer: Remove scissor clip
It's unused. Spotted while discussing snapshot APIs. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3006>
-rw-r--r--cogl/cogl/cogl-framebuffer.c21
-rw-r--r--cogl/cogl/cogl-framebuffer.h28
2 files changed, 2 insertions, 47 deletions
diff --git a/cogl/cogl/cogl-framebuffer.c b/cogl/cogl/cogl-framebuffer.c
index c01ef8d8e..ecc624000 100644
--- a/cogl/cogl/cogl-framebuffer.c
+++ b/cogl/cogl/cogl-framebuffer.c
@@ -2010,27 +2010,6 @@ cogl_framebuffer_set_projection_matrix (CoglFramebuffer *framebuffer,
}
void
-cogl_framebuffer_push_scissor_clip (CoglFramebuffer *framebuffer,
- int x,
- int y,
- int width,
- int height)
-{
- CoglFramebufferPrivate *priv =
- cogl_framebuffer_get_instance_private (framebuffer);
-
- priv->clip_stack =
- _cogl_clip_stack_push_window_rectangle (priv->clip_stack,
- x, y, width, height);
-
- if (priv->context->current_draw_buffer == framebuffer)
- {
- priv->context->current_draw_buffer_changes |=
- COGL_FRAMEBUFFER_STATE_CLIP;
- }
-}
-
-void
cogl_framebuffer_push_rectangle_clip (CoglFramebuffer *framebuffer,
float x_1,
float y_1,
diff --git a/cogl/cogl/cogl-framebuffer.h b/cogl/cogl/cogl-framebuffer.h
index e89b8f3a7..3c7f472df 100644
--- a/cogl/cogl/cogl-framebuffer.h
+++ b/cogl/cogl/cogl-framebuffer.h
@@ -471,30 +471,6 @@ cogl_framebuffer_set_projection_matrix (CoglFramebuffer *framebuffer,
const graphene_matrix_t *matrix);
/**
- * cogl_framebuffer_push_scissor_clip:
- * @framebuffer: A #CoglFramebuffer pointer
- * @x: left edge of the clip rectangle in window coordinates
- * @y: top edge of the clip rectangle in window coordinates
- * @width: width of the clip rectangle
- * @height: height of the clip rectangle
- *
- * Specifies a rectangular clipping area for all subsequent drawing
- * operations. Any drawing commands that extend outside the rectangle
- * will be clipped so that only the portion inside the rectangle will
- * be displayed. The rectangle dimensions are not transformed by the
- * current model-view matrix.
- *
- * The rectangle is intersected with the current clip region. To undo
- * the effect of this function, call cogl_framebuffer_pop_clip().
- */
-COGL_EXPORT void
-cogl_framebuffer_push_scissor_clip (CoglFramebuffer *framebuffer,
- int x,
- int y,
- int width,
- int height);
-
-/**
* cogl_framebuffer_push_rectangle_clip:
* @framebuffer: A #CoglFramebuffer pointer
* @x_1: x coordinate for top left corner of the clip rectangle
@@ -561,8 +537,8 @@ cogl_framebuffer_push_region_clip (CoglFramebuffer *framebuffer,
* @framebuffer: A #CoglFramebuffer pointer
*
* Reverts the clipping region to the state before the last call to
- * cogl_framebuffer_push_scissor_clip(), cogl_framebuffer_push_rectangle_clip()
- * cogl_framebuffer_push_path_clip(), or cogl_framebuffer_push_primitive_clip().
+ * cogl_framebuffer_push_rectangle_clip(), or
+ * cogl_framebuffer_push_primitive_clip().
*/
COGL_EXPORT void
cogl_framebuffer_pop_clip (CoglFramebuffer *framebuffer);