Commit 29fbe27f authored by Vlad Zahorodnii's avatar Vlad Zahorodnii

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.
parent 9b89a3d9
......@@ -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();
......
......@@ -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.
*/
......
......@@ -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();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment