Add virtual method to Scene to get the EGL/GLX extensions
ClosedPublic

Authored by graesslin on Sep 8 2017, 1:53 PM.

Details

Summary

We had a few places (e.g. DebugConsole, Platform) where the Scene was
cased into a SceneOpenGL to access the backend and get the extensions.

This change simplifies that by adding a virtual method to Scene directly
which is implemented in SceneOpenGL and returns the backend's
extensions.

Thus the casts to SceneOpenGL are no longer required.

Test Plan

Opened debug console to verify extensions are listed,
triggered Outline to verify the sharing QPA context gets created.

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