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.
icc-effect-5.26.4
Vlad Zahorodnii 2020-10-12 09:50:55 +03:00
parent 9b89a3d967
commit 29fbe27ffc
3 changed files with 3 additions and 3 deletions

View File

@ -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();

View File

@ -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.
*/

View File

@ -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();