diff options
author | anknight <andrew.knight@digia.com> | 2013-02-14 15:29:10 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-02-18 13:34:18 +0100 |
commit | 936aceb5f204e6f51b69de5555d7d8337677c9c3 (patch) | |
tree | 619b76524e3d58f9ed926aaa0c0bf0d8e30a4379 /src/plugins/platforms/kms/qkmscursor.h | |
parent | 4d14d14021ee67b30e691dc96267ffb0312e3f26 (diff) |
KMS QPA Plugin: use GBM cursor writer
GBM provides a way to write directly to a buffer object that gets set
as the drmMode cursor. This eliminates the need to create a GL texture
and opens this class up to platforms that support GBM but not OpenGL.
Change-Id: I7297827387ef9a717a5287b5484f14c9987b4158
Reviewed-by: Andy Nichols <andy.nichols@digia.com>
Diffstat (limited to 'src/plugins/platforms/kms/qkmscursor.h')
-rw-r--r-- | src/plugins/platforms/kms/qkmscursor.h | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/plugins/platforms/kms/qkmscursor.h b/src/plugins/platforms/kms/qkmscursor.h index fda47ebedc..ee65b01e36 100644 --- a/src/plugins/platforms/kms/qkmscursor.h +++ b/src/plugins/platforms/kms/qkmscursor.h @@ -44,15 +44,11 @@ #include <qpa/qplatformcursor.h> -#define EGL_EGLEXT_PROTOTYPES 1 - -#include <EGL/egl.h> -#include <EGL/eglext.h> - QT_BEGIN_NAMESPACE class QKmsScreen; class gbm_device; +class gbm_bo; class QKmsCursor : public QPlatformCursor { @@ -61,12 +57,12 @@ public: ~QKmsCursor(); void pointerEvent(const QMouseEvent &event); - void changeCursor(QCursor *widgetCursor, QWindow *window); + void changeCursor(QCursor *windowCursor, QWindow *window); private: QKmsScreen *m_screen; gbm_device *m_graphicsBufferManager; - EGLImageKHR m_eglImage; + gbm_bo *m_cursorBufferObject; QPlatformCursorImage *m_cursorImage; bool m_moved; }; |