gsk: Use some more inline helpers

This commit is contained in:
Matthias Clasen 2023-11-13 22:12:58 +01:00
parent a37aacf4e4
commit b766f92026
2 changed files with 7 additions and 7 deletions

View File

@ -2822,7 +2822,7 @@ equal_texture_nodes (const GskRenderNode *node1,
gsk_texture_node_get_texture (node2))
return FALSE;
return graphene_rect_equal (&node1->bounds, &node2->bounds);
return gsk_rect_equal (&node1->bounds, &node2->bounds);
}
static inline void
@ -3949,7 +3949,7 @@ gsk_gl_render_job_visit_repeat_node (GskGLRenderJob *job,
if (node_is_invisible (child))
return;
if (!graphene_rect_equal (child_bounds, &child->bounds))
if (!gsk_rect_equal (child_bounds, &child->bounds))
{
/* TODO: implement these repeat nodes. */
gsk_gl_render_job_visit_as_fallback (job, node);

View File

@ -131,7 +131,7 @@ gsk_color_node_diff (GskRenderNode *node1,
GskColorNode *self1 = (GskColorNode *) node1;
GskColorNode *self2 = (GskColorNode *) node2;
if (graphene_rect_equal (&node1->bounds, &node2->bounds) &&
if (gsk_rect_equal (&node1->bounds, &node2->bounds) &&
gdk_rgba_equal (&self1->color, &self2->color))
return;
@ -1685,7 +1685,7 @@ gsk_texture_node_diff (GskRenderNode *node1,
GskTextureNode *self2 = (GskTextureNode *) node2;
cairo_region_t *sub;
if (!graphene_rect_equal (&node1->bounds, &node2->bounds) ||
if (!gsk_rect_equal (&node1->bounds, &node2->bounds) ||
gdk_texture_get_width (self1->texture) != gdk_texture_get_width (self2->texture) ||
gdk_texture_get_height (self1->texture) != gdk_texture_get_height (self2->texture))
{
@ -1872,7 +1872,7 @@ gsk_texture_scale_node_diff (GskRenderNode *node1,
GskTextureScaleNode *self2 = (GskTextureScaleNode *) node2;
cairo_region_t *sub;
if (!graphene_rect_equal (&node1->bounds, &node2->bounds) ||
if (!gsk_rect_equal (&node1->bounds, &node2->bounds) ||
self1->filter != self2->filter ||
gdk_texture_get_width (self1->texture) != gdk_texture_get_width (self2->texture) ||
gdk_texture_get_height (self1->texture) != gdk_texture_get_height (self2->texture))
@ -4145,7 +4145,7 @@ gsk_clip_node_diff (GskRenderNode *node1,
GskClipNode *self1 = (GskClipNode *) node1;
GskClipNode *self2 = (GskClipNode *) node2;
if (graphene_rect_equal (&self1->clip, &self2->clip))
if (gsk_rect_equal (&self1->clip, &self2->clip))
{
cairo_region_t *sub;
cairo_rectangle_int_t clip_rect;
@ -6491,7 +6491,7 @@ gsk_gl_shader_node_diff (GskRenderNode *node1,
GskGLShaderNode *self1 = (GskGLShaderNode *) node1;
GskGLShaderNode *self2 = (GskGLShaderNode *) node2;
if (graphene_rect_equal (&node1->bounds, &node2->bounds) &&
if (gsk_rect_equal (&node1->bounds, &node2->bounds) &&
self1->shader == self2->shader &&
g_bytes_compare (self1->args, self2->args) == 0 &&
self1->n_children == self2->n_children)