cogl/framebuffer: Remove scissor clip

It's unused. Spotted while discussing snapshot APIs.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3006>
This commit is contained in:
Georges Basile Stavracas Neto 2023-05-16 18:53:56 -03:00 committed by Marge Bot
parent f73fdfb465
commit 656ccb4dee
2 changed files with 2 additions and 47 deletions

View File

@ -2009,27 +2009,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,

View File

@ -470,30 +470,6 @@ COGL_EXPORT void
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
@ -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);