Commit 170c4168 authored by Vlad Zahorodnii's avatar Vlad Zahorodnii

Drop unused EGLSurface getter and setter in Platform

Besides being unused, we should avoid making OpenGL contexts current
against the EGLSurface of the first output because it's a slippery road
that may end up in leaking context-specific resources in the mid of a
compositing restart.
parent 292335be
......@@ -131,19 +131,6 @@ public:
* by rendering backends.
*/
void setSceneEglGlobalShareContext(EGLContext context);
/**
* The first (in case of multiple) EGLSurface used by the compositing scene.
*/
EGLSurface sceneEglSurface() const {
return m_surface;
}
/**
* Sets the first @p surface used by the compositing scene.
* @see sceneEglSurface
*/
void setSceneEglSurface(EGLSurface surface) {
m_surface = surface;
}
/**
* The EglConfig used by the compositing scene.
......@@ -558,7 +545,6 @@ private:
EGLConfig m_eglConfig = nullptr;
EGLContext m_context = EGL_NO_CONTEXT;
EGLContext m_globalShareContext = EGL_NO_CONTEXT;
EGLSurface m_surface = EGL_NO_SURFACE;
int m_hideCursorCounter = 0;
ColorCorrect::Manager *m_colorCorrect = nullptr;
bool m_supportsGammaControl = false;
......
......@@ -118,7 +118,6 @@ void AbstractEglBackend::cleanup()
cleanupSurfaces();
eglReleaseThread();
kwinApp()->platform()->setSceneEglContext(EGL_NO_CONTEXT);
kwinApp()->platform()->setSceneEglSurface(EGL_NO_SURFACE);
kwinApp()->platform()->setSceneEglConfig(nullptr);
}
......@@ -359,7 +358,6 @@ void AbstractEglBackend::setConfig(const EGLConfig &config)
void AbstractEglBackend::setSurface(const EGLSurface &surface)
{
m_surface = surface;
kwinApp()->platform()->setSceneEglSurface(surface);
}
QSharedPointer<GLTexture> AbstractEglBackend::textureForOutput(AbstractOutput *requestedOutput) const
......
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