[host] accumulate cursor updates rather then queue

This commit is contained in:
Geoffrey McRae
2018-10-19 20:14:00 +11:00
parent 2692ccc7b3
commit 1350ba6c4b
4 changed files with 53 additions and 68 deletions

View File

@@ -34,12 +34,13 @@ struct CursorInfo
{
bool visible;
bool hasPos;
bool hasShape;
int x, y;
enum CursorType type;
unsigned int w, h;
unsigned int pitch;
CursorBuffer * shape;
CursorBuffer shape;
};
struct FrameInfo
@@ -78,6 +79,6 @@ public:
virtual unsigned int Capture() = 0;
virtual enum GrabStatus GetFrame(struct FrameInfo & frame) = 0;
virtual bool GetCursor(CursorInfo & cursor) = 0;
virtual void FreeCursor(CursorInfo & cursor) = 0;
virtual void FreeCursor() = 0;
virtual enum GrabStatus DiscardFrame() = 0;
};