Changeset View
Changeset View
Standalone View
Standalone View
plugins/scenes/opengl/scene_opengl.cpp
Show First 20 Lines • Show All 568 Lines • ▼ Show 20 Line(s) | 549 | { | |||
---|---|---|---|---|---|
569 | 569 | | |||
570 | // Wait until the reset is completed or max 10 seconds | 570 | // Wait until the reset is completed or max 10 seconds | ||
571 | while (timer.elapsed() < 10000 && glGetGraphicsResetStatus() != GL_NO_ERROR) | 571 | while (timer.elapsed() < 10000 && glGetGraphicsResetStatus() != GL_NO_ERROR) | ||
572 | usleep(50); | 572 | usleep(50); | ||
573 | 573 | | |||
574 | qCDebug(KWIN_OPENGL) << "Attempting to reset compositing."; | 574 | qCDebug(KWIN_OPENGL) << "Attempting to reset compositing."; | ||
575 | QMetaObject::invokeMethod(this, "resetCompositing", Qt::QueuedConnection); | 575 | QMetaObject::invokeMethod(this, "resetCompositing", Qt::QueuedConnection); | ||
576 | 576 | | |||
577 | KNotification::event(QStringLiteral("graphicsreset"), i18n("Desktop effects were restarted due to a graphics reset")); | 577 | KNotification::event(QStringLiteral("graphicsreset"), i18n("Graphical effects were restarted due to a graphics reset")); | ||
578 | } | 578 | } | ||
579 | 579 | | |||
580 | 580 | | |||
581 | void SceneOpenGL::triggerFence() | 581 | void SceneOpenGL::triggerFence() | ||
582 | { | 582 | { | ||
583 | if (m_syncManager) { | 583 | if (m_syncManager) { | ||
584 | m_currentFence = m_syncManager->nextFence(); | 584 | m_currentFence = m_syncManager->nextFence(); | ||
585 | m_currentFence->trigger(); | 585 | m_currentFence->trigger(); | ||
▲ Show 20 Lines • Show All 1989 Lines • Show Last 20 Lines |