Move the OpenGL unsafe check into the Platform
ClosedPublic

Authored by graesslin on May 10 2016, 8:39 AM.

Details

Summary

A new virtual method createOpenGLSafePoint is added to Platform.
This is invoked through the Compositor with a PreInit and a PostInit
argument pre and post creating the SceneOpenGL.

The Platform plugin can implement this and use it for detecting whether
creating the OpenGL compositor on this platform crashed in the past.
Thus it's the base for the openGLIsBroken platform check.

The x11 standalone plugin is the first to implement this functionality
using the previous code which was designed for X11.

This also means that a crash of the OpenGL compositor during init on
Wayland won't result in OpenGL being disabled.

Diff Detail

Repository
R108 KWin
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
graesslin updated this revision to Diff 3744.May 10 2016, 8:39 AM
graesslin retitled this revision from to Move the OpenGL unsafe check into the Platform.
graesslin updated this object.
graesslin edited the test plan for this revision. (Show Details)
graesslin added a reviewer: Plasma.
Restricted Application added a project: Plasma. · View Herald TranscriptMay 10 2016, 8:39 AM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
mart accepted this revision.May 17 2016, 12:13 PM
mart added a reviewer: mart.
This revision is now accepted and ready to land.May 17 2016, 12:13 PM
This revision was automatically updated to reflect the committed changes.