diff options
author | Benjamin Otte <otte@redhat.com> | 2021-10-02 22:38:05 +0200 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2021-10-06 03:44:59 +0200 |
commit | 5eb42dd9f3b44041d2bf03006b296453bc862cef (patch) | |
tree | 91ddd5379539d29615f54a5aa979b4c0383ecedb /gdk/gdkdrawcontext.c | |
parent | 7ede468849e73b572f73285dcd66b1bfe6051ae5 (diff) | |
download | gtk+-5eb42dd9f3b44041d2bf03006b296453bc862cef.tar.gz |
gdk: Add GDK_DEBUG=hdr
Forces request_hdr = TRUE for all requests.
Backends should also use this when choosing whether to honor HDR
requests for low quality compositors - as long as the compositor
pretends to support HDR, shovel HDR at it.
Diffstat (limited to 'gdk/gdkdrawcontext.c')
-rw-r--r-- | gdk/gdkdrawcontext.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gdk/gdkdrawcontext.c b/gdk/gdkdrawcontext.c index 1515917b07..b1988c4034 100644 --- a/gdk/gdkdrawcontext.c +++ b/gdk/gdkdrawcontext.c @@ -22,6 +22,7 @@ #include "gdkdrawcontextprivate.h" +#include "gdkdebug.h" #include "gdkintl.h" #include "gdkprofilerprivate.h" #include "gdksurfaceprivate.h" @@ -361,6 +362,9 @@ gdk_draw_context_begin_frame_full (GdkDrawContext *context, return; } + if (GDK_DISPLAY_DEBUG_CHECK (priv->display, HDR)) + request_hdr = TRUE; + priv->frame_region = cairo_region_copy (region); priv->surface->paint_context = g_object_ref (context); |