TEXTURE_METHOD_TIFF_PIXBUF in memorytexture test doesn't actually use TIFF
TEXTURE_METHOD_TIFF_PIXBUF
in testsuite/gdk/memorytexture.c
doesn't actually exercise TIFF save/load:
bytes = gdk_texture_save_to_png_bytes (texture);
With the obvious patch:
diff --git a/testsuite/gdk/memorytexture.c b/testsuite/gdk/memorytexture.c
index bbc563bab9..80e3afb98c 100644
--- a/testsuite/gdk/memorytexture.c
+++ b/testsuite/gdk/memorytexture.c
@@ -496,7 +496,7 @@ create_texture (GdkMemoryFormat format,
GdkPixbuf *pixbuf;
GBytes *bytes;
- bytes = gdk_texture_save_to_png_bytes (texture);
+ bytes = gdk_texture_save_to_tiff_bytes (texture);
g_assert (bytes);
g_object_unref (texture);
stream = g_memory_input_stream_new_from_bytes (bytes);
the test fails, which seems to be a gdk-pixbuf bug rather than a GTK bug: gdk-pixbuf#100, gdk-pixbuf!22.
It looks as though GTK correctly saves a TIFF file with premultiplied alpha ("associated alpha" in TIFF jargon), but gdk-pixbuf loads it as though it was straight alpha ("unassociated alpha" in TIFF jargon).
GTK's own loader does not have that bug, so TEXTURE_METHOD_TIFF
works.