Add a pure virtual method to Platform to describe the supported compositors
ClosedPublic

Authored by graesslin on Oct 15 2017, 8:27 PM.

Details

Summary

So far KWin does not know which Compositors the platform actually
supports. This results in KWin happily trying to use the OpenGL
compositor on fbdev or the QPainter compositor on hwcomposer although
that is obviously going to fail as the platform doesn't support this.

By adding a pure virtual method all Platforms can define what they
support. In a later step the Compositor can use this to create an
appropriate scene and also perform proper fallback handling in case the
scene creation fails.

Test Plan

Compiles

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 created this revision.Oct 15 2017, 8:27 PM
Restricted Application added a project: KWin. · View Herald TranscriptOct 15 2017, 8:27 PM
Restricted Application added subscribers: kwin, plasma-devel. · View Herald Transcript
davidedmundson accepted this revision.Oct 15 2017, 8:30 PM
This revision is now accepted and ready to land.Oct 15 2017, 8:30 PM
This revision was automatically updated to reflect the committed changes.