[gtk/matthiasc/color-profile-rebased: 18/66] gsk: Serialize textures as tiff
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/matthiasc/color-profile-rebased: 18/66] gsk: Serialize textures as tiff
- Date: Fri, 13 May 2022 04:00:02 +0000 (UTC)
commit e670eab41ed59fff69de08894b93a2ab4469206a
Author: Matthias Clasen <mclasen redhat com>
Date: Tue May 10 15:49:44 2022 -0400
gsk: Serialize textures as tiff
This is better than png in that it allows us to
preserve floating point data without going to uin16.
gsk/gskrendernodeparser.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gsk/gskrendernodeparser.c b/gsk/gskrendernodeparser.c
index 11d5e61d70..c03c05df59 100644
--- a/gsk/gskrendernodeparser.c
+++ b/gsk/gskrendernodeparser.c
@@ -2697,10 +2697,10 @@ render_node_print (Printer *p,
start_node (p, "texture");
append_rect_param (p, "bounds", &node->bounds);
- bytes = gdk_texture_save_to_png_bytes (texture);
+ bytes = gdk_texture_save_to_tiff_bytes (texture);
_indent (p);
- g_string_append (p->str, "texture: url(\"data:image/png;base64,");
+ g_string_append (p->str, "texture: url(\"data:image/tiff;base64,");
b64 = base64_encode_with_linebreaks (g_bytes_get_data (bytes, NULL),
g_bytes_get_size (bytes));
append_escaping_newlines (p->str, b64);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]