From d344bcbbcb680e95f2136d70bb5b0c0b5932fd0d Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Mon, 17 Jun 2024 07:39:20 -0400 Subject: [PATCH] colorstate: Add a comment --- gdk/gdkcolorstate.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gdk/gdkcolorstate.c b/gdk/gdkcolorstate.c index 982816267c..36bf71cfbc 100644 --- a/gdk/gdkcolorstate.c +++ b/gdk/gdkcolorstate.c @@ -623,6 +623,9 @@ gdk_named_color_state_get_min_depth (GdkColorState *self) case GDK_COLOR_STATE_ID_SRGB_LINEAR: return GDK_MEMORY_FLOAT16; + /* We want to use fast paths for the common srgb-linear / srgb case, + * which needs u8 framebuffers + */ case GDK_COLOR_STATE_ID_SRGB: return GDK_MEMORY_U8;