gsk: Remove gsk_render_node_get_scale_factor()

Scale factors belong to the renderers, not the nodes. The nodes should
just use whatever scale factor the renderer tells them to when
rendering.
This commit is contained in:
Benjamin Otte 2016-11-01 04:58:29 +01:00
parent 3d8b00600e
commit e201c4dc92
4 changed files with 1 additions and 22 deletions

View File

@ -54,7 +54,6 @@ GskBlendMode
gsk_render_node_set_blend_mode
GskScalingFilter
gsk_render_node_set_scaling_filters
gsk_render_node_get_scale_factor
gsk_render_node_set_name
gsk_value_set_render_node
gsk_value_take_render_node

View File

@ -625,7 +625,7 @@ gsk_gl_renderer_add_render_item (GskGLRenderer *self,
gsk_renderer_get_viewport (GSK_RENDERER (self), &viewport);
scale_factor = gsk_render_node_get_scale_factor (node);
scale_factor = gsk_renderer_get_scale_factor (GSK_RENDERER (self));
if (scale_factor < 1)
scale_factor = 1;

View File

@ -1293,24 +1293,6 @@ gsk_render_node_get_world_matrix (GskRenderNode *node,
*mv = node->world_matrix;
}
/*
* gsk_render_node_get_scale_factor:
* @node: a #GskRenderNode
*
* Retrieves the scale factor used when rendering.
*
* See also: gsk_renderer_get_scale_factor()
*
* Returns: the scale factor
*/
int
gsk_render_node_get_scale_factor (GskRenderNode *node)
{
g_return_val_if_fail (GSK_IS_RENDER_NODE (node), 1);
return gsk_renderer_get_scale_factor (node->renderer);
}
/**
* gsk_render_node_set_name:
* @node: a #GskRenderNode

View File

@ -98,8 +98,6 @@ GskBlendMode gsk_render_node_get_blend_mode (GskRenderNode *node);
GskRenderNode *gsk_render_node_get_toplevel (GskRenderNode *node);
int gsk_render_node_get_scale_factor (GskRenderNode *node);
void gsk_render_node_update_world_matrix (GskRenderNode *node,
gboolean force);