void QKmsScreen::swapBuffers() { eglSwapBuffers(m_device->eglDisplay(), m_eglWindowSurface); m_next_bo = gbm_surface_lock_front_buffer(m_gbmSurface); if (!m_next_bo) qFatal("kms: Failed to lock front buffer"); performPageFlip(); }
void QKmsScreen::swapBuffers() { waitForPageFlipComplete(); if ( m_flipReady ) performPageFlip(); //TODO: Do something with return value here m_bufferManager.nextBuffer(); //qDebug() << "swapBuffers now rendering to " << m_bufferManager.renderTargetBuffer(); bindFramebuffer(); }
void QKmsScreen::setFlipReady(unsigned int time) { m_flipReady = true; m_refreshTime = time; performPageFlip(); }