From 29fbe27ffc6e4011b1ca83e5022a857eacddc386 Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Mon, 12 Oct 2020 09:50:55 +0300 Subject: [PATCH] core: Use less confusing name for Platform::supportsQpaContext() Platform::supportsQpaContext() indicates if the EGL display supports surfaceless contexts, so reflect that in the method name. --- platform.cpp | 2 +- platform.h | 2 +- plugins/qpa/window.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/platform.cpp b/platform.cpp index 5cdc1bd942..e001c4e288 100644 --- a/platform.cpp +++ b/platform.cpp @@ -413,7 +413,7 @@ void Platform::warpPointer(const QPointF &globalPos) Q_UNUSED(globalPos) } -bool Platform::supportsQpaContext() const +bool Platform::supportsSurfacelessContext() const { if (Compositor *c = Compositor::self()) { return c->scene()->supportsSurfacelessContext(); diff --git a/platform.h b/platform.h index bf8681b10d..29b7e9e960 100644 --- a/platform.h +++ b/platform.h @@ -100,7 +100,7 @@ public: * Whether our Compositing EGL display allows a surface less context * so that a sharing context could be created. */ - virtual bool supportsQpaContext() const; + bool supportsSurfacelessContext() const; /** * The EGLDisplay used by the compositing scene. */ diff --git a/plugins/qpa/window.cpp b/plugins/qpa/window.cpp index 50bd5a756e..d307ad0abb 100644 --- a/plugins/qpa/window.cpp +++ b/plugins/qpa/window.cpp @@ -146,7 +146,7 @@ void Window::unmap() EGLSurface Window::eglSurface() const { - if (kwinApp()->platform()->supportsQpaContext()) { + if (kwinApp()->platform()->supportsSurfacelessContext()) { return EGL_NO_SURFACE; } return kwinApp()->platform()->sceneEglSurface();