[cairo] [PATCH v8 49/71] drm/intel: intel_scaled_glyph_fini(): renamed local priv variable for better consistency
Enrico Weigelt, metux IT consult
enrico.weigelt at gr13.net
Thu Jun 30 15:46:27 UTC 2016
Signed-off-by: Enrico Weigelt, metux IT consult <enrico.weigelt at gr13.net>
---
src/drm/cairo-drm-intel.c | 15 ++++++---------
1 file changed, 6 insertions(+), 9 deletions(-)
diff --git a/src/drm/cairo-drm-intel.c b/src/drm/cairo-drm-intel.c
index f69252b..e5906c3 100644
--- a/src/drm/cairo-drm-intel.c
+++ b/src/drm/cairo-drm-intel.c
@@ -902,15 +902,12 @@ void
intel_scaled_glyph_fini (cairo_scaled_glyph_t *scaled_glyph,
cairo_scaled_font_t *scaled_font)
{
- intel_glyph_t *glyph;
-
- glyph = scaled_glyph->surface_private;
- if (glyph != NULL) {
- /* XXX thread-safety? Probably ok due to the frozen scaled-font. */
- glyph->node.owner = NULL;
- if (! glyph->node.pinned)
- _cairo_rtree_node_remove (&glyph->cache->rtree, &glyph->node);
- }
+ intel_glyph_t *priv = scaled_glyph->surface_private;
+
+ /* XXX thread-safety? Probably ok due to the frozen scaled-font. */
+ priv->node.owner = NULL;
+ if (! priv->node.pinned)
+ _cairo_rtree_node_remove (&priv->cache->rtree, &priv->node);
}
void
--
2.6.4.442.g545299f
More information about the cairo
mailing list