diff options
author | Keith Packard <keithp@keithp.com> | 2013-10-18 16:42:20 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2013-10-18 16:42:20 -0700 |
commit | 5d11236c1951d6f2618eb420702f20455f165a0b (patch) | |
tree | 35afd67a25de250ca211346639fe2ef253a0b3f2 /presenttokens.h | |
parent | f15c4568f2b4e50e80bf5cf650bde13441bb0b72 (diff) |
PresentRegion->PresentPixmap, define options, add UST mode
Changes the name of the PresentPixmap request from PresentRegion in
anticipation of future additions of non-pixmap sourced updates (YUV
images in particular).
Adds definitions for all of the new PresentPixmap options.
Adds PresentQueryCapabilities to provide applications the ability to
learn what the underlying hardware can support. One requirement for
any capability is that the X server must do something sensible even if
the client behaves as if a capability is supported when it is not.
Adds IdleNotify events. As pixmaps can go idle in any order, it's
important for applications to know which pixmap to use next. We cannot
use fences as the fence itself may not be signaled for some time after
the X server has figured out which pixmap to idle.
Note that the encoding and header files are not entirely up to date now.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'presenttokens.h')
-rw-r--r-- | presenttokens.h | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/presenttokens.h b/presenttokens.h index dbfdb36..4eb4a9b 100644 --- a/presenttokens.h +++ b/presenttokens.h @@ -32,12 +32,20 @@ /* Requests */ #define X_PresentQueryVersion 0 -#define X_PresentRegion 1 +#define X_PresentPixmap 1 #define X_PresentNotifyMSC 2 #define X_PresentSelectInput 3 #define PresentNumberRequests 4 +/* Present operation options */ +#define PresentOptionNone 0 +#define PresentOptionAsync (1 << 0) +#define PresentOptionCopy (1 << 1) + +#define PresentAllOptions (PresentOptionAsync | \ + PresentOptionCopy) + /* Events */ #define PresentConfigureNotify 0 #define PresentCompleteNotify 1 @@ -54,7 +62,13 @@ /* Complete Kinds */ -#define PresentCompleteKindRegion 0 +#define PresentCompleteKindPixmap 0 #define PresentCompleteKindNotifyMSC 1 +/* Complete Modes */ + +#define PresentCompleteModeCopy 0 +#define PresentCompleteModeFlip 1 +#define PresentCompleteModeSkip 2 + #endif |