Details
-
Bug
-
Resolution: Out of scope
-
P2: Important
-
5.1.0 Beta 1
-
None
Description
Result of brain storming:
class QWaylandCompositor {
bool pageFlipSurface(QWaylandSurface *surface, QOpenGLContext *context);
/*
// example usage from qwindow-compositor
if (!QWaylandCompositor::pageFlipSurface(myFullscreenSurface, context))
*/
};
class WaylandSurfaceItem : PageFlippableQuickItem
{
public:
bool post(QOpenGLContext *context)
/*
// scene graph code
if (m_fullscreenPageFlippableItem && m_fullscreenPageFlippableItem->post(m_context))
return;
m_context->makeCurrent(m_window);
renderScreneGraph();
m_context->swapBuffers(m_window);
*/
};
The problem with setDirectRenderSurface() is that the compositor doesn't know whether the direct render surface was successfully set and whether it should go on compositing or not.