vulkan: Remove unused functions

This commit is contained in:
Benjamin Otte 2023-07-13 21:21:46 +02:00
parent 822641c161
commit 0d5e54986a
4 changed files with 0 additions and 44 deletions

View File

@ -610,27 +610,6 @@ gsk_vulkan_image_new (GdkVulkanContext *context,
return self; 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 * GskVulkanImage *
gsk_vulkan_image_new_for_upload (GdkVulkanContext *context, gsk_vulkan_image_new_for_upload (GdkVulkanContext *context,
GdkMemoryFormat format, GdkMemoryFormat format,

View File

@ -26,8 +26,6 @@ GskVulkanImage * gsk_vulkan_image_new_for_swapchain (GdkVulk
VkFormat format, VkFormat format,
gsize width, gsize width,
gsize height); gsize height);
GskVulkanImage * gsk_vulkan_image_new_from_texture (GskVulkanUploader *uploader,
GdkTexture *texture);
typedef struct { typedef struct {
guchar *data; guchar *data;

View File

@ -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 * GskVulkanGlyphCache *
gsk_vulkan_renderer_get_glyph_cache (GskVulkanRenderer *self) gsk_vulkan_renderer_get_glyph_cache (GskVulkanRenderer *self)
{ {

View File

@ -11,9 +11,6 @@ GskVulkanImage * gsk_vulkan_renderer_get_texture_image (GskVulk
void gsk_vulkan_renderer_add_texture_image (GskVulkanRenderer *self, void gsk_vulkan_renderer_add_texture_image (GskVulkanRenderer *self,
GdkTexture *texture, GdkTexture *texture,
GskVulkanImage *image); GskVulkanImage *image);
GskVulkanImage * gsk_vulkan_renderer_ref_texture_image (GskVulkanRenderer *self,
GdkTexture *texture,
GskVulkanUploader *uploader);
GskVulkanCachedGlyph *gsk_vulkan_renderer_cache_glyph (GskVulkanRenderer *renderer, GskVulkanCachedGlyph *gsk_vulkan_renderer_cache_glyph (GskVulkanRenderer *renderer,
PangoFont *font, PangoFont *font,