Change-Id: I4ef2387f36c4eaad0b63786d9c35d05ed947c136
Reviewed-on: http://codereview.qt.nokia.com/3190
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
#endif
guiContext->swapBuffers(renderer);
-
+ emit renderer->frameSwapped();//notify compositor that frame has been swapped
#ifdef THREAD_DEBUG
printf(" RenderThread: swap complete...\n");
#endif
void setRenderTarget(QGLFramebufferObject *fbo);
QGLFramebufferObject *renderTarget() const;
+signals:
+ void frameSwapped();
+
Q_SIGNALS:
void sceneGraphInitialized();
private:
friend class QSGItem;
+ friend class QSGCanvasRenderThread;
Q_DISABLE_COPY(QSGCanvas)
};