3#ifndef QQnxWindowGrabber_H
4#define QQnxWindowGrabber_H
17#define EGL_EGLEXT_PROTOTYPES
18#define GL_GLEXT_PROTOTYPES
21#include <GLES2/gl2ext.h>
22#include <EGL/eglext.h>
23#include <QAbstractNativeEventFilter>
30#include <screen/screen.h>
48 unsigned char *
data =
nullptr;
70 bool nativeEventFilter(
const QByteArray &eventType,
void *message, qintptr *result)
override;
90 void checkForEglImageExtension();
94 QByteArray m_windowId;
96 screen_window_t m_windowParent;
97 screen_window_t m_window;
98 screen_context_t m_screenContext;
100 std::unique_ptr<QQnxWindowGrabberImage> m_frontBuffer;
101 std::unique_ptr<QQnxWindowGrabberImage> m_backBuffer;
108 bool m_eglImageSupported;
~QQnxWindowGrabberImage()
bool initialize(screen_context_t screenContext)
GLuint getTexture(screen_window_t window, const QSize &size)
QQnxWindowGrabber::BufferView getBuffer(screen_window_t window, const QSize &size)
QQnxWindowGrabber(QObject *parent=0)
bool isEglImageSupported() const
bool nativeEventFilter(const QByteArray &eventType, void *message, qintptr *result) override
This method is called for every native event.
BufferView getNextBuffer()
void setWindowId(const QByteArray &windowId)
bool handleScreenEvent(screen_event_t event)
QByteArray windowGroupId() const
void setFrameRate(int frameRate)
static PFNEGLDESTROYIMAGEKHRPROC s_eglDestroyImageKHR