D22150: [plugins/qpa] Implement native offscreen surface
    Roman Gilg 
    noreply at phabricator.kde.org
       
    Mon Jul  1 19:46:54 BST 2019
    
    
  
romangg accepted this revision.
romangg added inline comments.
This revision is now accepted and ready to land.
INLINE COMMENTS
> sharingplatformcontext.cpp:85
>  {
> -    Window *window = static_cast<Window*>(surface);
> -    auto c = window->shellClient();
> -    if (!c) {
> -        qCDebug(KWIN_QPA) << "SwapBuffers called but there is no ShellClient";
> -        return;
> +    if (surface->surface()->surfaceClass() == QSurface::Window) {
> +        Window *window = static_cast<Window *>(surface);
You could check the opposite and return early. But not crucial.
> sharingplatformcontext.cpp:96
>      }
> -    qCDebug(KWIN_QPA) << "No default framebuffer object for internal window";
>      return 0;
Maybe put this debug line just inside window case in case fbo.isNull(), i.e. not remove but one line above. But not crucial.
> sharingplatformcontext.cpp:101
>  {
>      if (Window *window = dynamic_cast<Window*>(surface)) {
>          const auto &fbo = window->contentFBO();
qobject_cast?
REPOSITORY
  R108 KWin
REVISION DETAIL
  https://phabricator.kde.org/D22150
To: zzag, #kwin, romangg
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kwin/attachments/20190701/ddb7500b/attachment-0001.html>
    
    
More information about the kwin
mailing list