Move glxbackend to x11 standalone plugin
ClosedPublic

Authored by graesslin on Apr 12 2016, 1:04 PM.

Details

Summary

It's only needed by the standalone x11 variant. This allows us to
simplify the creation of the OpenGLBackend: it's created by the
platform plugin - we don't need custom complex logic.

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 3296.Apr 12 2016, 1:04 PM
graesslin retitled this revision from to Move glxbackend to x11 standalone plugin.
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 TranscriptApr 12 2016, 1:04 PM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
sebas added a subscriber: sebas.Apr 14 2016, 10:23 AM
sebas added inline comments.
plugins/platforms/x11/standalone/x11_platform.cpp
62

should this ifdef not cover also the case and break lines? (So the whole case only becomes available with epoxy, and if not, there's no such branch and we fall back to default?

graesslin added inline comments.Apr 14 2016, 11:55 AM
plugins/platforms/x11/standalone/x11_platform.cpp
62

I also stumbled over this when moving the code. I decided to leave it as it is for the move. But yeah there is clearly a problem as it would no longer compile with the dependency missing.

I'll make it fall through to default.

graesslin updated this revision to Diff 3334.Apr 14 2016, 12:05 PM

Reworked the X11StandalonePlatform::createOpenGLBackend() to
compile also when HAVE_EPOXY_GLX is not set.

sebas accepted this revision.Apr 14 2016, 12:08 PM
sebas added a reviewer: sebas.
sebas added inline comments.
plugins/platforms/x11/standalone/x11_platform.cpp
62

Might as well move this line up above the "case "GlxPlatformInterface:, makes it more logical.

No need to supply a new patchjust for that, though. Just fix it (if you agree) and ship it.

This revision is now accepted and ready to land.Apr 14 2016, 12:08 PM
graesslin marked an inline comment as done.Apr 14 2016, 12:22 PM
This revision was automatically updated to reflect the committed changes.