X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/78c828aae07db0b15a66577d9230cb848fe536fa..d1455ab44c24de50db9c4ed7efb2ac2a523b9fdd:/lib/gdi/grc.h diff --git a/lib/gdi/grc.h b/lib/gdi/grc.h index 53bf7f09..82243483 100644 --- a/lib/gdi/grc.h +++ b/lib/gdi/grc.h @@ -14,6 +14,7 @@ #include #include #include +#include #include #include #include @@ -50,6 +51,10 @@ struct gOpcode flush, + waitVSync, + flip, + notify, + end,shutdown } opcode; @@ -128,15 +133,14 @@ struct gOpcode int rel; } *setOffset; } parm; - - int flags; }; /* gRC is the singleton which controls the fifo and dispatches commands */ -class gRC: public iObject +class gRC: public iObject, public Object { DECLARE_REF(gRC); private: + friend class gPainter; static gRC *instance; static void *thread_wrapper(void *ptr); @@ -144,6 +148,9 @@ private: void *thread(); queueRingBuffer queue; + + eFixedMessagePump m_notify_pump; + void recv_notify(const int &i); public: eLock queuelock; gRC(); @@ -164,6 +171,8 @@ public: } } + Signal0 notify; + static gRC *getInstance(); }; @@ -229,6 +238,10 @@ public: void clippop(); void flush(); + + void waitVSync(); + void flip(); + void notify(); }; class gDC: public iObject