Add presentBuffer method to EGLFS hooks.
Change-Id: Iab5674fe9407d3ab447ef6c16577b24fa60d42aa Reviewed-by: Laszlo Agocs <laszlo.agocs@digia.com>bb10
parent
46b2c74eaf
commit
0e02f16cea
|
|
@ -76,6 +76,7 @@ void QEglFSContext::swapBuffers(QPlatformSurface *surface)
|
|||
|
||||
QEglFSHooks::hooks()->waitForVSync();
|
||||
QEGLPlatformContext::swapBuffers(surface);
|
||||
QEglFSHooks::hooks()->presentBuffer();
|
||||
}
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
|
|
|||
|
|
@ -76,6 +76,7 @@ public:
|
|||
virtual QEGLPlatformCursor *createCursor(QPlatformScreen *screen) const;
|
||||
virtual bool filterConfig(EGLDisplay display, EGLConfig config) const;
|
||||
virtual void waitForVSync() const;
|
||||
virtual void presentBuffer();
|
||||
|
||||
virtual QByteArray fbDeviceName() const;
|
||||
virtual int framebufferIndex() const;
|
||||
|
|
|
|||
|
|
@ -198,6 +198,10 @@ void QEglFSHooks::waitForVSync() const
|
|||
#endif
|
||||
}
|
||||
|
||||
void QEglFSHooks::presentBuffer()
|
||||
{
|
||||
}
|
||||
|
||||
#ifndef EGLFS_PLATFORM_HOOKS
|
||||
QEglFSHooks stubHooks;
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Reference in New Issue