D22150: [plugins/qpa] Implement native offscreen surface

Roman Gilg <[email protected]>
Newsgroups gmane.comp.kde.devel.kwin
Message-ID <[email protected]>
romangg added a comment.


  I would put the code split up into the egl_helpers file into a separate commit. Other than that looks nice. Wondering why we didn't have this implemented before and it wasn't an issue before 5.16.

INLINE COMMENTS

> sharingplatformcontext.cpp:98
> +        EGLSurface eglSurface = static_cast<OffscreenSurface *>(surface)->nativeHandle();
> +        const bool ok = eglSwapBuffers(eglDisplay(), eglSurface);
> +        if (!ok) {

pbuffers only have a back buffer and eglSwapBuffers is a no-op.

REPOSITORY
  R108 KWin

REVISION DETAIL
  https://phabricator.kde.org/D22150

To: zzag, #kwin
Cc: romangg, alexeymin, kwin, LeGast00n, sbergeron, jraleigh, fbampaloukas, GB_2, mkulinski, ragreen, jackyalcine, Pitel, iodelay, crozbo, bwowk, ZrenBot, ngraham, himcesjf, lesliezhai, ali-mohamed, hardening, jensreuterberg, abetts, sebas, apol, mart
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.