From 00e536f22ab1a6d8803e5ec1a65e91c00dc72774 Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Wed, 10 May 2023 11:34:19 +0300 Subject: [PATCH] Drop EglDisplay::supportsSwapBuffersWithDamage() It's unused. --- src/platformsupport/scenes/opengl/egldisplay.cpp | 6 ------ src/platformsupport/scenes/opengl/egldisplay.h | 2 -- 2 files changed, 8 deletions(-) diff --git a/src/platformsupport/scenes/opengl/egldisplay.cpp b/src/platformsupport/scenes/opengl/egldisplay.cpp index 8aa1097af3..1cb2d4bc90 100644 --- a/src/platformsupport/scenes/opengl/egldisplay.cpp +++ b/src/platformsupport/scenes/opengl/egldisplay.cpp @@ -78,7 +78,6 @@ EglDisplay::EglDisplay(::EGLDisplay display, const QList &extensions , m_extensions(extensions) , m_owning(owning) , m_supportsBufferAge(extensions.contains(QByteArrayLiteral("EGL_EXT_buffer_age")) && qgetenv("KWIN_USE_BUFFER_AGE") != "0") - , m_supportsSwapBuffersWithDamage(extensions.contains(QByteArrayLiteral("EGL_EXT_swap_buffers_with_damage"))) , m_supportsNativeFence(extensions.contains(QByteArrayLiteral("EGL_ANDROID_native_fence_sync"))) , m_importFormats(queryImportFormats()) { @@ -159,11 +158,6 @@ bool EglDisplay::supportsBufferAge() const return m_supportsBufferAge; } -bool EglDisplay::supportsSwapBuffersWithDamage() const -{ - return m_supportsSwapBuffersWithDamage; -} - bool EglDisplay::supportsNativeFence() const { return m_supportsNativeFence; diff --git a/src/platformsupport/scenes/opengl/egldisplay.h b/src/platformsupport/scenes/opengl/egldisplay.h index a1e3d8a677..3ae8d99aa1 100644 --- a/src/platformsupport/scenes/opengl/egldisplay.h +++ b/src/platformsupport/scenes/opengl/egldisplay.h @@ -34,7 +34,6 @@ public: QString renderNode() const; bool supportsBufferAge() const; - bool supportsSwapBuffersWithDamage() const; bool supportsNativeFence() const; QHash> supportedDrmFormats() const; @@ -50,7 +49,6 @@ private: const bool m_owning; const bool m_supportsBufferAge; - const bool m_supportsSwapBuffersWithDamage; const bool m_supportsNativeFence; const QHash> m_importFormats; };