summaryrefslogtreecommitdiff
path: root/gsk/gskvulkantextpipelineprivate.h
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2017-10-27 17:13:40 -0400
committerMatthias Clasen <mclasen@redhat.com>2017-10-27 17:13:40 -0400
commitea91ab1d9917bc4990728bda24c54f25f1e1b0ba (patch)
tree3dcd905aacfb3f2d424184756620e9ac98b7156a /gsk/gskvulkantextpipelineprivate.h
parent999848e0c68dc7dbd319150208386b0a536d6780 (diff)
downloadgtk+-ea91ab1d9917bc4990728bda24c54f25f1e1b0ba.tar.gz
gsk: Make text nodes more compact
The copy of the PangoGlyphString we do here was showing up in some profiles. To avoid it, allocate the PangoGlyphInfo array as part of the node itself. Update all callers to deal with the slight api change required for this.
Diffstat (limited to 'gsk/gskvulkantextpipelineprivate.h')
-rw-r--r--gsk/gskvulkantextpipelineprivate.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/gsk/gskvulkantextpipelineprivate.h b/gsk/gskvulkantextpipelineprivate.h
index 7701fbb4bb..064045e469 100644
--- a/gsk/gskvulkantextpipelineprivate.h
+++ b/gsk/gskvulkantextpipelineprivate.h
@@ -26,7 +26,8 @@ void gsk_vulkan_text_pipeline_collect_vertex_data (GskVulka
GskVulkanRenderer *renderer,
const graphene_rect_t *rect,
PangoFont *font,
- PangoGlyphString *glyphs,
+ guint total_glyphs,
+ const PangoGlyphInfo *glyphs,
const GdkRGBA *color,
float x,
float y,