aboutsummaryrefslogtreecommitdiff
path: root/shm.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2025-05-01 06:34:49 +0000
committerDaniel Eklöf <daniel@ekloef.se>2025-05-01 06:54:30 +0000
commite5a0755451b736c635be58764799ef8d7b536e8d (patch)
tree0d084fbce2136f706369a640a46f04f058a492f2 /shm.h
parentconfig: gamma-correct-blending: disable by default (diff)
config: tweak.surface-bit-depth now defaults to 'auto'
When set to 'auto', use 10-bit surfaces if gamma-correct blending is enabled, and 8-bit surfaces otherwise. Note that we may still fallback to 8-bit surfaces (without disabling gamma-correct blending) if the compositor does not support 10-bit surfaces. Closes #2082
Diffstat (limited to 'shm.h')
-rw-r--r--shm.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/shm.h b/shm.h
index 2af185c9..8f8c406a 100644
--- a/shm.h
+++ b/shm.h
@@ -9,6 +9,7 @@
#include <tllist.h>
+#include "config.h"
#include "wayland.h"
struct damage;
@@ -46,9 +47,11 @@ void shm_set_max_pool_size(off_t max_pool_size);
struct buffer_chain;
struct buffer_chain *shm_chain_new(
struct wayland *wayl, bool scrollable, size_t pix_instances,
- bool ten_bit_it_if_capable);
+ enum shm_bit_depth desired_bit_depth);
void shm_chain_free(struct buffer_chain *chain);
+enum shm_bit_depth shm_chain_bit_depth(const struct buffer_chain *chain);
+
/*
* Returns a single buffer.
*