6#include <QtGui/QOpenGLContext>
7#include <QtOpenGL/QOpenGLPaintDevice>
12 : QPlatformBackingStore(window)
13 , m_context(
new QOpenGLContext)
16 m_context->setFormat(window->requestedFormat());
17 m_context->setScreen(window->screen());
36#ifdef QEGL_EXTRA_DEBUG
37 qWarning(
"QEglBackingStore::flush %p", window);
40 m_context->swapBuffers(window);
45 m_context->makeCurrent(window());
46 m_device =
new QOpenGLPaintDevice(window()->size());
57 Q_UNUSED(staticContents);
~QMinimalEglBackingStore()
void endPaint() override
This function is called after painting onto the surface has ended.
void resize(const QSize &size, const QRegion &staticContents) override
QPaintDevice * paintDevice() override
Implement this function to return the appropriate paint device.
void beginPaint(const QRegion &) override
This function is called before painting onto the surface begins, with the region in which the paintin...