summaryrefslogtreecommitdiff
path: root/src/sna/sna.h
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2015-02-14 22:31:06 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2015-02-14 22:43:14 +0000
commit74553bf4d25f5876ef6e682d06f5825feb9e1da4 (patch)
tree8e8b0f3d4a11cb4b74d52b43be41d2f32adf85af /src/sna/sna.h
parentc30af937f8d634d0055358cb69db2896cf595983 (diff)
sna/present: Integrate into TearFree, take 2
Following on from the previous attempt is the realisation that we can simply disable TearFree during a Present flip queue, and re-enable TearFree upon unflip. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/sna.h')
-rw-r--r--src/sna/sna.h8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/sna/sna.h b/src/sna/sna.h
index 1bddf7ad..bbcea080 100644
--- a/src/sna/sna.h
+++ b/src/sna/sna.h
@@ -311,13 +311,6 @@ struct sna {
Bool (*rrGetInfo)(ScreenPtr, Rotation *);
} mode;
- struct sna_tearfree {
- struct notifier {
- void (*func)(struct sna *, void *);
- void *data;
- } hook[2];
- } tearfree;
-
struct {
struct sna_cursor *cursors;
xf86CursorInfoPtr info;
@@ -363,6 +356,7 @@ struct sna {
bool open;
#if HAVE_PRESENT
uint64_t unflip;
+ void *tearfree;
#endif
} present;