Diffusion KWin f88c322a3b83

[platforms/x11] Use a GlxContextAttributeBuilder

Authored by graesslin on Jun 27 2017, 7:08 PM.

Description

[platforms/x11] Use a GlxContextAttributeBuilder

Summary:
Based on the work of 3f4995fb9b4fd753a304ea65020bbafdd174936b this change
introduces a GlxContextAttributeBuilder to make the requesting of context
attributes cleaner, more verbose and less error prone copy and paste.

Test Plan:
Switched between Core and legacy and verified the output;
extended auto test

Reviewers: KWin, Plasma

Subscribers: plasma-devel

Tags: Plasma

Differential Revision: https://phabricator.kde.org/D6411