summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>2017-09-20 19:12:16 -0400
committerMatthias Clasen <mclasen@redhat.com>2017-09-20 23:26:14 -0400
commit7d7f8e5f8ec5049d4a91da90117390ebc27e2fca (patch)
tree179ac96209c7f921af198b3994a1b10fbb5f2a08
parentb97fb751469dbe43ec39f1278bc8d79377cfc667 (diff)
downloadgtk+-7d7f8e5f8ec5049d4a91da90117390ebc27e2fca.tar.gz
gsk vulkan: Use new api in the glyph cache
Use the newly introduced gsk_vulkan_image_new_for_atlas.
-rw-r--r--gsk/gskvulkanglyphcache.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/gsk/gskvulkanglyphcache.c b/gsk/gskvulkanglyphcache.c
index 0be019d7f7..bf0a0621f7 100644
--- a/gsk/gskvulkanglyphcache.c
+++ b/gsk/gskvulkanglyphcache.c
@@ -322,18 +322,7 @@ gsk_vulkan_glyph_cache_get_glyph_image (GskVulkanGlyphCache *cache,
atlas = g_ptr_array_index (cache->atlases, index);
if (atlas->image == NULL)
- {
- cairo_surface_t *surface;
-
- /* FIXME: create the image without uploading data pointlessly */
- surface = cairo_image_surface_create (CAIRO_FORMAT_ARGB32, atlas->width, atlas->height);
- atlas->image = gsk_vulkan_image_new_from_data (uploader,
- cairo_image_surface_get_data (surface),
- cairo_image_surface_get_width (surface),
- cairo_image_surface_get_height (surface),
- cairo_image_surface_get_stride (surface));
- cairo_surface_destroy (surface);
- }
+ atlas->image = gsk_vulkan_image_new_for_atlas (cache->vulkan, atlas->width, atlas->height);
for (l = atlas->dirty_glyphs; l; l = l->next)
{