diff options
author | Paul Olav Tvete <paul.tvete@nokia.com> | 2011-02-25 11:56:28 (GMT) |
---|---|---|
committer | Paul Olav Tvete <paul.tvete@nokia.com> | 2011-02-25 11:56:28 (GMT) |
commit | 2a9680ffcaf85f233323a0d41bea776a519e747a (patch) | |
tree | bc365db2d38de49c07385bbf650c9e38a8b100ac /src/plugins/platforms/wayland/qwaylandshmsurface.h | |
parent | 1f50a3aa50b934a181cd0d18c260f2533ab63d43 (diff) | |
download | Qt-2a9680ffcaf85f233323a0d41bea776a519e747a.zip Qt-2a9680ffcaf85f233323a0d41bea776a519e747a.tar.gz Qt-2a9680ffcaf85f233323a0d41bea776a519e747a.tar.bz2 |
Avoid flicker
Don't start a new paint until we get an ack from the compositor
Reviewed-by: Samuel
Diffstat (limited to 'src/plugins/platforms/wayland/qwaylandshmsurface.h')
-rw-r--r-- | src/plugins/platforms/wayland/qwaylandshmsurface.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/platforms/wayland/qwaylandshmsurface.h b/src/plugins/platforms/wayland/qwaylandshmsurface.h index 266b290..615d944 100644 --- a/src/plugins/platforms/wayland/qwaylandshmsurface.h +++ b/src/plugins/platforms/wayland/qwaylandshmsurface.h @@ -71,10 +71,14 @@ public: QPaintDevice *paintDevice(); void flush(QWidget *widget, const QRegion ®ion, const QPoint &offset); void resize(const QSize &size); + void beginPaint(const QRegion &); private: + static void frameCallback(void *data, uint32_t time);\ + QWaylandShmBuffer *mBuffer; QWaylandDisplay *mDisplay; + bool mWaitingForFrameSync; }; QT_END_NAMESPACE |