diff options
author | Mattias Andrée <maandree@kth.se> | 2023-01-22 12:06:22 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2023-01-22 12:06:22 +0100 |
commit | fd0dab96666f09e382468013cc39a79b550c7fed (patch) | |
tree | 1d144904520cf975005437799599f2e6be67ae6a /libglitter_enable_acceleration.c | |
parent | Use column-major conversion matrices (diff) | |
download | libglitter-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.c | 17 |
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; +} |