summaryrefslogtreecommitdiffstats
path: root/src/platformsupport/platformcompositor/qopenglcompositor_p.h
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.agocs@theqtcompany.com>2015-03-16 10:00:29 +0100
committerLaszlo Agocs <laszlo.agocs@theqtcompany.com>2015-03-16 13:24:55 +0000
commit60cdc6035d25441fd99a7d341892ee2fb1002741 (patch)
treea4d037dded9ac494bbaff8edac5fd7a3b2aeef8f /src/platformsupport/platformcompositor/qopenglcompositor_p.h
parent3acd8d9aa463ffcc7d63d5262c0a66577c38f556 (diff)
Add support for grabWindow() on eglfs with widgets
For real OpenGL content it is still not supported because we have no reliable way to read back the contents at arbitrary times. Applications should rather use QQuickWindow::grabWindow() in that case. [ChangeLog][QtGui] Support for QScreen::grabWindow() is now available on embedded platforms (eglfs, linuxfb). Task-number: QTBUG-44937 Change-Id: I4ad046062782c160f5bb9f8f2a2fe82f2e7394cc Reviewed-by: Andy Nichols <andy.nichols@theqtcompany.com>
Diffstat (limited to 'src/platformsupport/platformcompositor/qopenglcompositor_p.h')
-rw-r--r--src/platformsupport/platformcompositor/qopenglcompositor_p.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/platformsupport/platformcompositor/qopenglcompositor_p.h b/src/platformsupport/platformcompositor/qopenglcompositor_p.h
index 257bbf2531..2a8257305b 100644
--- a/src/platformsupport/platformcompositor/qopenglcompositor_p.h
+++ b/src/platformsupport/platformcompositor/qopenglcompositor_p.h
@@ -51,6 +51,7 @@
QT_BEGIN_NAMESPACE
class QOpenGLContext;
+class QOpenGLFramebufferObject;
class QWindow;
class QPlatformTextureList;
@@ -76,6 +77,7 @@ public:
QWindow *targetWindow() const { return m_targetWindow; }
void update();
+ QImage grab();
QList<QOpenGLCompositorWindow *> windows() const { return m_windows; }
void addWindow(QOpenGLCompositorWindow *window);
@@ -87,12 +89,13 @@ signals:
void topWindowChanged(QOpenGLCompositorWindow *window);
private slots:
- void renderAll();
+ void handleRenderAllRequest();
private:
QOpenGLCompositor();
~QOpenGLCompositor();
+ void renderAll(QOpenGLFramebufferObject *fbo);
void render(QOpenGLCompositorWindow *window);
QOpenGLContext *m_context;