summaryrefslogtreecommitdiff
path: root/gdk/gdkmemorytextureprivate.h
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2021-10-07 02:41:30 +0200
committerBenjamin Otte <otte@redhat.com>2021-10-07 02:41:30 +0200
commit8950c0dc960da50e7e38bcb5984b74286a9f178c (patch)
tree3e3e8a0d49d41aba7f567bc2954d0225525abaa1 /gdk/gdkmemorytextureprivate.h
parent2e555db9a4210480360cde2770981daf22a74619 (diff)
downloadgtk+-8950c0dc960da50e7e38bcb5984b74286a9f178c.tar.gz
texture: Make format a property of GdkTexture
For MemoryTexture, this is a simple change. For GLTexture, we need to query the format at texture creation. This sounds like a bad idea and extra work until one realizes that we'd need to do that anyway when using the texure the first time - either when downloading, or when trying to use it in a rendernode, where we will soon need that information to determine if the texture prefers high depth.
Diffstat (limited to 'gdk/gdkmemorytextureprivate.h')
-rw-r--r--gdk/gdkmemorytextureprivate.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/gdk/gdkmemorytextureprivate.h b/gdk/gdkmemorytextureprivate.h
index f61cccb9ef..0cd5e91f27 100644
--- a/gdk/gdkmemorytextureprivate.h
+++ b/gdk/gdkmemorytextureprivate.h
@@ -29,7 +29,6 @@ G_BEGIN_DECLS
#define GDK_MEMORY_GDK_PIXBUF_OPAQUE GDK_MEMORY_R8G8B8
#define GDK_MEMORY_GDK_PIXBUF_ALPHA GDK_MEMORY_R8G8B8A8
-GdkMemoryFormat gdk_memory_texture_get_format (GdkMemoryTexture *self);
const guchar * gdk_memory_texture_get_data (GdkMemoryTexture *self);
gsize gdk_memory_texture_get_stride (GdkMemoryTexture *self);