Try all supported Compositor Types of the current Platform
ClosedPublic

Authored by graesslin on Oct 18 2017, 8:01 PM.

Details

Summary

The Compositor now tries to create a Scene not just once but every
type supported by the Platform till it finds one which works. The user's
configuration is only used as a preferred hint and tried first if the
platform supports it.

This brings as an advantage that on platforms such as framebuffer the
user does not need to specify which compositor to use: KWin uses QPainter
automatically.

Also we don't need to do the "translation" from XRender to QPainter any
more. XRender is not supported by any platform using QPainter, so the
user configuration is ignored anyway.

BUG: 350159
FIXED-IN: 5.12.0

Test Plan

Run on framebuffer, verified debug output.

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