aboutsummaryrefslogtreecommitdiffstats
path: root/libglitter_enable_acceleration.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2023-01-22 12:06:22 +0100
committerMattias Andrée <maandree@kth.se>2023-01-22 12:06:22 +0100
commitfd0dab96666f09e382468013cc39a79b550c7fed (patch)
tree1d144904520cf975005437799599f2e6be67ae6a /libglitter_enable_acceleration.c
parentUse column-major conversion matrices (diff)
downloadlibglitter-fd0dab96666f09e382468013cc39a79b550c7fed.tar.gz
libglitter-fd0dab96666f09e382468013cc39a79b550c7fed.tar.bz2
libglitter-fd0dab96666f09e382468013cc39a79b550c7fed.tar.xz
Function for enabling hardware acceleration (doesn't enable hardware acceleration yet)
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r--libglitter_enable_acceleration.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/libglitter_enable_acceleration.c b/libglitter_enable_acceleration.c
new file mode 100644
index 0000000..f012da9
--- /dev/null
+++ b/libglitter_enable_acceleration.c
@@ -0,0 +1,17 @@
+/* See LICENSE file for copyright and license details. */
+#include "common.h"
+
+
+int
+libglitter_enable_acceleration(uint64_t features, int async, void (*callback)(int r, int e, void *u), void *userdata)
+{
+ (void) features;
+ (void) async;
+
+ /* TODO add support for hardware acceleration */
+
+ if (callback)
+ callback(0, 0, userdata);
+
+ return 0;
+}