mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-28 06:21:14 +00:00
a0bbd14325
Pass a scale factor when caching glyphs or looking them up in the cache. The glyphs in the cache are rendered with subpixel precision determined by the scale. Update all callers to pass a scale factor according to the window scale. This lets us render crisp glyphs on hidpi systems.
29 lines
1.3 KiB
C
29 lines
1.3 KiB
C
#ifndef __GSK_VULKAN_GLYPH_CACHE_PRIVATE_H__
|
|
#define __GSK_VULKAN_GLYPH_CACHE_PRIVATE_H__
|
|
|
|
#include <pango/pango.h>
|
|
#include "gskvulkanrendererprivate.h"
|
|
#include "gskvulkanimageprivate.h"
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
#define GSK_TYPE_VULKAN_GLYPH_CACHE (gsk_vulkan_glyph_cache_get_type ())
|
|
|
|
G_DECLARE_FINAL_TYPE(GskVulkanGlyphCache, gsk_vulkan_glyph_cache, GSK, VULKAN_GLYPH_CACHE, GObject)
|
|
|
|
GskVulkanGlyphCache *gsk_vulkan_glyph_cache_new (GdkVulkanContext *vulkan);
|
|
|
|
GskVulkanImage * gsk_vulkan_glyph_cache_get_glyph_image (GskVulkanGlyphCache *cache,
|
|
GskVulkanUploader *uploader,
|
|
guint index);
|
|
|
|
GskVulkanCachedGlyph *gsk_vulkan_glyph_cache_lookup (GskVulkanGlyphCache *cache,
|
|
gboolean create,
|
|
PangoFont *font,
|
|
PangoGlyph glyph,
|
|
float scale);
|
|
|
|
void gsk_vulkan_glyph_cache_begin_frame (GskVulkanGlyphCache *cache);
|
|
|
|
#endif /* __GSK_VULKAN_GLYPH_CACHE_PRIVATE_H__ */
|