summaryrefslogtreecommitdiff
path: root/gsk/vulkan/gskvulkanrendererprivate.h
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2019-07-25 17:50:31 -0400
committerMatthias Clasen <mclasen@redhat.com>2019-07-28 16:42:52 -0400
commit5c9643b6ebe2adda42e60255954748334bdb3c2c (patch)
tree7566eb4c2f5f5b7eb86b5ce1fb38ea596b324375 /gsk/vulkan/gskvulkanrendererprivate.h
parent4de670b0b478329d161b4ead7927f29233531d6f (diff)
downloadgtk+-5c9643b6ebe2adda42e60255954748334bdb3c2c.tar.gz
vulkan: implement subpixel positioning
Pass the glyph position into the glyph caching functions, not just the glyph index. This allows us to cache different images for different subpixel positions.
Diffstat (limited to 'gsk/vulkan/gskvulkanrendererprivate.h')
-rw-r--r--gsk/vulkan/gskvulkanrendererprivate.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gsk/vulkan/gskvulkanrendererprivate.h b/gsk/vulkan/gskvulkanrendererprivate.h
index d492a85b1f..eca34ccabd 100644
--- a/gsk/vulkan/gskvulkanrendererprivate.h
+++ b/gsk/vulkan/gskvulkanrendererprivate.h
@@ -30,6 +30,8 @@ typedef struct
guint gsk_vulkan_renderer_cache_glyph (GskVulkanRenderer *renderer,
PangoFont *font,
PangoGlyph glyph,
+ int x,
+ int y,
float scale);
GskVulkanImage * gsk_vulkan_renderer_ref_glyph_image (GskVulkanRenderer *self,
@@ -39,6 +41,8 @@ GskVulkanImage * gsk_vulkan_renderer_ref_glyph_image (GskVulkanRenderer *
GskVulkanCachedGlyph * gsk_vulkan_renderer_get_cached_glyph (GskVulkanRenderer *self,
PangoFont *font,
PangoGlyph glyph,
+ int x,
+ int y,
float scale);