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.
{ "vulkan-disable", GDK_DEBUG_VULKAN_DISABLE, "Disable Vulkan support" },
{ "vulkan-validate", GDK_DEBUG_VULKAN_VALIDATE, "Load the Vulkan validation layer" },
{ "default-settings",GDK_DEBUG_DEFAULT_SETTINGS, "Force default values for xsettings", TRUE },
+ { "hdr", GDK_DEBUG_HDR, "Use HDR rendering if possible", TRUE },
};
GDK_DEBUG_VULKAN_DISABLE = 1 << 21,
GDK_DEBUG_VULKAN_VALIDATE = 1 << 22,
GDK_DEBUG_DEFAULT_SETTINGS= 1 << 23,
+ GDK_DEBUG_HDR = 1 << 24,
} GdkDebugFlags;
extern guint _gdk_debug_flags;
#include "gdkdrawcontextprivate.h"
+#include "gdkdebug.h"
#include "gdkintl.h"
#include "gdkprofilerprivate.h"
#include "gdksurfaceprivate.h"
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);