[client] x11: make use of the x11 present extension for jitRender

This implementation is a bit dodgy and needs some work but is currently
functional. Consider this feature highly experiemental under X11.
This commit is contained in:
Geoffrey McRae
2021-08-02 14:46:21 +10:00
parent 037788f562
commit 891ee3e789
3 changed files with 122 additions and 10 deletions

View File

@@ -21,20 +21,30 @@
#ifndef _H_X11DS_X11_
#define _H_X11DS_X11_
#include <stdatomic.h>
#include <X11/Xlib.h>
#include <X11/Xatom.h>
#include <X11/Xutil.h>
#include <GL/glx.h>
#include "interface/displayserver.h"
#include "common/thread.h"
#include "common/types.h"
#include "common/runningavg.h"
struct X11DSState
{
Display * display;
Window window;
XVisualInfo * visual;
int xinputOp;
int xinputOp, xpresentOp;
uint32_t presentSerial;
Pixmap presentPixmap;
RunningAvg presentAvg;
LGEvent * frameEvent;
LGThread * eventThread;