Move querying the egl extensions into the AbstractEglBackend
ClosedPublic

Authored by graesslin on Nov 17 2016, 6:57 AM.

Details

Summary

Instead of having the egl extensions in the global kwinglutils lib it
becomes private to the AbstractEglBackend. Just like on glx the
glxextensions are moved into the platform.

The extensions are queried from initEglAPI, that is as early as possible
after initializing the EGLDisplay. This ensures that any implementing
subclass can access the extensions early enough.

As a note: the EglOnXBackend had a potentially wrong sequence for
initializing the buffer age extension. It is now moved to the correct
place where the result is needed for the first time.

From the global API eglExtensions are removed from hasGLExtension and
the eglExtensions function is dropped. As by that initEGL did not do
anything it is also dropped.

Test Plan

Tested nested kwin on Wayland, still works, extensions shown
in debug console

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 8248.Nov 17 2016, 6:57 AM
graesslin retitled this revision from to Move querying the egl extensions into the AbstractEglBackend.
graesslin updated this object.
graesslin edited the test plan for this revision. (Show Details)
graesslin added reviewers: KWin, Plasma.
Restricted Application added a project: KWin. · View Herald TranscriptNov 17 2016, 6:57 AM
Restricted Application added subscribers: kwin, plasma-devel. · View Herald Transcript
sebas accepted this revision.Nov 17 2016, 11:33 AM
sebas added a reviewer: sebas.
This revision is now accepted and ready to land.Nov 17 2016, 11:33 AM
This revision was automatically updated to reflect the committed changes.