Drop gdk_dmabuf_downloader_supports
It is not used anymore.
This commit is contained in:
@@ -18,19 +18,6 @@ gdk_dmabuf_downloader_close (GdkDmabufDownloader *self)
|
|||||||
iface->close (self);
|
iface->close (self);
|
||||||
}
|
}
|
||||||
|
|
||||||
gboolean
|
|
||||||
gdk_dmabuf_downloader_supports (GdkDmabufDownloader *self,
|
|
||||||
GdkDmabufTexture *texture,
|
|
||||||
GError **error)
|
|
||||||
{
|
|
||||||
GdkDmabufDownloaderInterface *iface;
|
|
||||||
|
|
||||||
g_return_val_if_fail (GDK_IS_DMABUF_DOWNLOADER (self), FALSE);
|
|
||||||
|
|
||||||
iface = GDK_DMABUF_DOWNLOADER_GET_IFACE (self);
|
|
||||||
return iface->supports (self, texture, error);
|
|
||||||
}
|
|
||||||
|
|
||||||
gboolean
|
gboolean
|
||||||
gdk_dmabuf_downloader_download (GdkDmabufDownloader *self,
|
gdk_dmabuf_downloader_download (GdkDmabufDownloader *self,
|
||||||
GdkDmabufTexture *texture,
|
GdkDmabufTexture *texture,
|
||||||
|
|||||||
@@ -14,9 +14,6 @@ struct _GdkDmabufDownloaderInterface
|
|||||||
GTypeInterface g_iface;
|
GTypeInterface g_iface;
|
||||||
|
|
||||||
void (* close) (GdkDmabufDownloader *downloader);
|
void (* close) (GdkDmabufDownloader *downloader);
|
||||||
gboolean (* supports) (GdkDmabufDownloader *downloader,
|
|
||||||
GdkDmabufTexture *texture,
|
|
||||||
GError **error);
|
|
||||||
gboolean (* download) (GdkDmabufDownloader *downloader,
|
gboolean (* download) (GdkDmabufDownloader *downloader,
|
||||||
GdkDmabufTexture *texture,
|
GdkDmabufTexture *texture,
|
||||||
GdkMemoryFormat format,
|
GdkMemoryFormat format,
|
||||||
@@ -26,9 +23,6 @@ struct _GdkDmabufDownloaderInterface
|
|||||||
};
|
};
|
||||||
|
|
||||||
void gdk_dmabuf_downloader_close (GdkDmabufDownloader *self);
|
void gdk_dmabuf_downloader_close (GdkDmabufDownloader *self);
|
||||||
gboolean gdk_dmabuf_downloader_supports (GdkDmabufDownloader *self,
|
|
||||||
GdkDmabufTexture *texture,
|
|
||||||
GError **error);
|
|
||||||
gboolean gdk_dmabuf_downloader_download (GdkDmabufDownloader *downloader,
|
gboolean gdk_dmabuf_downloader_download (GdkDmabufDownloader *downloader,
|
||||||
GdkDmabufTexture *texture,
|
GdkDmabufTexture *texture,
|
||||||
GdkMemoryFormat format,
|
GdkMemoryFormat format,
|
||||||
|
|||||||
@@ -158,7 +158,6 @@ static void
|
|||||||
gsk_gl_renderer_dmabuf_downloader_init (GdkDmabufDownloaderInterface *iface)
|
gsk_gl_renderer_dmabuf_downloader_init (GdkDmabufDownloaderInterface *iface)
|
||||||
{
|
{
|
||||||
iface->close = gsk_gl_renderer_dmabuf_downloader_close;
|
iface->close = gsk_gl_renderer_dmabuf_downloader_close;
|
||||||
iface->supports = gsk_gl_renderer_dmabuf_downloader_supports;
|
|
||||||
iface->download = gsk_gl_renderer_dmabuf_downloader_download;
|
iface->download = gsk_gl_renderer_dmabuf_downloader_download;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -127,31 +127,6 @@ gsk_gpu_renderer_dmabuf_downloader_close (GdkDmabufDownloader *downloader)
|
|||||||
gsk_renderer_unrealize (GSK_RENDERER (downloader));
|
gsk_renderer_unrealize (GSK_RENDERER (downloader));
|
||||||
}
|
}
|
||||||
|
|
||||||
static gboolean
|
|
||||||
gsk_gpu_renderer_dmabuf_downloader_supports (GdkDmabufDownloader *downloader,
|
|
||||||
GdkDmabufTexture *texture,
|
|
||||||
GError **error)
|
|
||||||
{
|
|
||||||
GskGpuRenderer *self = GSK_GPU_RENDERER (downloader);
|
|
||||||
const GdkDmabuf *dmabuf;
|
|
||||||
GdkDmabufFormats *formats;
|
|
||||||
|
|
||||||
dmabuf = gdk_dmabuf_texture_get_dmabuf (texture);
|
|
||||||
|
|
||||||
formats = GSK_GPU_RENDERER_GET_CLASS (self)->get_dmabuf_formats (self);
|
|
||||||
|
|
||||||
if (!gdk_dmabuf_formats_contains (formats, dmabuf->fourcc, dmabuf->modifier))
|
|
||||||
{
|
|
||||||
g_set_error (error,
|
|
||||||
GDK_DMABUF_ERROR, GDK_DMABUF_ERROR_UNSUPPORTED_FORMAT,
|
|
||||||
"Unsupported dmabuf format: %.4s:%#" G_GINT64_MODIFIER "x",
|
|
||||||
(char *) &dmabuf->fourcc, dmabuf->modifier);
|
|
||||||
return FALSE;
|
|
||||||
}
|
|
||||||
|
|
||||||
return TRUE;
|
|
||||||
}
|
|
||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
gsk_gpu_renderer_dmabuf_downloader_download (GdkDmabufDownloader *downloader,
|
gsk_gpu_renderer_dmabuf_downloader_download (GdkDmabufDownloader *downloader,
|
||||||
GdkDmabufTexture *texture,
|
GdkDmabufTexture *texture,
|
||||||
@@ -201,7 +176,6 @@ static void
|
|||||||
gsk_gpu_renderer_dmabuf_downloader_init (GdkDmabufDownloaderInterface *iface)
|
gsk_gpu_renderer_dmabuf_downloader_init (GdkDmabufDownloaderInterface *iface)
|
||||||
{
|
{
|
||||||
iface->close = gsk_gpu_renderer_dmabuf_downloader_close;
|
iface->close = gsk_gpu_renderer_dmabuf_downloader_close;
|
||||||
iface->supports = gsk_gpu_renderer_dmabuf_downloader_supports;
|
|
||||||
iface->download = gsk_gpu_renderer_dmabuf_downloader_download;
|
iface->download = gsk_gpu_renderer_dmabuf_downloader_download;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user