diff --git a/gsk/vulkan/gskvulkanimage.c b/gsk/vulkan/gskvulkanimage.c index 7b67b50caf..6cf0c742ba 100644 --- a/gsk/vulkan/gskvulkanimage.c +++ b/gsk/vulkan/gskvulkanimage.c @@ -610,27 +610,6 @@ gsk_vulkan_image_new (GdkVulkanContext *context, return self; } -GskVulkanImage * -gsk_vulkan_image_new_from_texture (GskVulkanUploader *uploader, - GdkTexture *texture) -{ - GdkTextureDownloader *downloader; - GskVulkanImage *result; - GskVulkanImageMap map; - - downloader = gdk_texture_downloader_new (texture); - result = gsk_vulkan_image_new_for_upload (uploader->vulkan, - gdk_texture_get_format (texture), - gdk_texture_get_width (texture), - gdk_texture_get_height (texture)); - gdk_texture_downloader_set_format (downloader, result->format); - gsk_vulkan_image_map_memory (result, uploader, GSK_VULKAN_WRITE, &map); - gdk_texture_downloader_download_into (downloader, map.data, map.stride); - gsk_vulkan_image_unmap_memory (result, uploader, &map); - gdk_texture_downloader_free (downloader); - return result; -} - GskVulkanImage * gsk_vulkan_image_new_for_upload (GdkVulkanContext *context, GdkMemoryFormat format, diff --git a/gsk/vulkan/gskvulkanimageprivate.h b/gsk/vulkan/gskvulkanimageprivate.h index f7741b3c81..aca603a096 100644 --- a/gsk/vulkan/gskvulkanimageprivate.h +++ b/gsk/vulkan/gskvulkanimageprivate.h @@ -26,8 +26,6 @@ GskVulkanImage * gsk_vulkan_image_new_for_swapchain (GdkVulk VkFormat format, gsize width, gsize height); -GskVulkanImage * gsk_vulkan_image_new_from_texture (GskVulkanUploader *uploader, - GdkTexture *texture); typedef struct { guchar *data; diff --git a/gsk/vulkan/gskvulkanrenderer.c b/gsk/vulkan/gskvulkanrenderer.c index b6b9abeca4..6985e92a66 100644 --- a/gsk/vulkan/gskvulkanrenderer.c +++ b/gsk/vulkan/gskvulkanrenderer.c @@ -457,24 +457,6 @@ gsk_vulkan_renderer_add_texture_image (GskVulkanRenderer *self, } } -GskVulkanImage * -gsk_vulkan_renderer_ref_texture_image (GskVulkanRenderer *self, - GdkTexture *texture, - GskVulkanUploader *uploader) -{ - GskVulkanImage *image; - - image = gsk_vulkan_renderer_get_texture_image (self, texture); - if (image) - return g_object_ref (image); - - image = gsk_vulkan_image_new_from_texture (uploader, texture); - - gsk_vulkan_renderer_add_texture_image (self, texture, image); - - return image; -} - GskVulkanGlyphCache * gsk_vulkan_renderer_get_glyph_cache (GskVulkanRenderer *self) { diff --git a/gsk/vulkan/gskvulkanrendererprivate.h b/gsk/vulkan/gskvulkanrendererprivate.h index dc17f14e8a..65809afabd 100644 --- a/gsk/vulkan/gskvulkanrendererprivate.h +++ b/gsk/vulkan/gskvulkanrendererprivate.h @@ -11,9 +11,6 @@ GskVulkanImage * gsk_vulkan_renderer_get_texture_image (GskVulk void gsk_vulkan_renderer_add_texture_image (GskVulkanRenderer *self, GdkTexture *texture, GskVulkanImage *image); -GskVulkanImage * gsk_vulkan_renderer_ref_texture_image (GskVulkanRenderer *self, - GdkTexture *texture, - GskVulkanUploader *uploader); GskVulkanCachedGlyph *gsk_vulkan_renderer_cache_glyph (GskVulkanRenderer *renderer, PangoFont *font,