}
gboolean
-gsk_vulkan_clip_intersects_rect (const GskVulkanClip *self,
- const graphene_point_t *offset,
- const graphene_rect_t *rect)
+gsk_vulkan_clip_may_intersect_rect (const GskVulkanClip *self,
+ const graphene_point_t *offset,
+ const graphene_rect_t *rect)
{
graphene_rect_t r = *rect;
r.origin.x += offset->x;
case GSK_VULKAN_CLIP_NONE:
case GSK_VULKAN_CLIP_RECT:
- return graphene_rect_intersection (&self->rect.bounds, &r, NULL);
-
case GSK_VULKAN_CLIP_ROUNDED:
- return gsk_rounded_rect_intersects_rect (&self->rect, &r);
+ return graphene_rect_intersection (&self->rect.bounds, &r, NULL);
}
}
gboolean gsk_vulkan_clip_contains_rect (const GskVulkanClip *self,
const graphene_point_t *offset,
const graphene_rect_t *rect) G_GNUC_WARN_UNUSED_RESULT;
-gboolean gsk_vulkan_clip_intersects_rect (const GskVulkanClip *self,
+gboolean gsk_vulkan_clip_may_intersect_rect (const GskVulkanClip *self,
const graphene_point_t *offset,
const graphene_rect_t *rect) G_GNUC_WARN_UNUSED_RESULT;
/* This catches the corner cases of empty nodes, so after this check
* there's quaranteed to be at least 1 pixel that needs to be drawn */
- if (!gsk_vulkan_clip_intersects_rect (&state->clip, &state->offset, &node->bounds))
+ if (!gsk_vulkan_clip_may_intersect_rect (&state->clip, &state->offset, &node->bounds))
return;
node_type = gsk_render_node_get_node_type (node);