Diffusion KWin 2d88fd0ee313

[scene] Release previous pixmap when a raster buffer is attached

Authored by zzag on Apr 21 2020, 9:11 AM.

Description

[scene] Release previous pixmap when a raster buffer is attached

We need to release the previous window pixmap if the new pixmap is
valid. However, it's currently the case only when the client has
attached either an fbo buffer or a wl_buffer. If an internal client
has attached a raster buffer, the previous window pixmap won't be
released.

In order to ensure that we're going to release the previous window
pixmaps no matter what type of buffer has been attached, this change
refactors WindowPixmap to use isValid() to verify that the new
window pixmap is valid.

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

Details

Committed
zzagMay 4 2020, 12:36 PM
Differential Revision
D29131: [scene] Generate window quads for sub-surfaces
Parents
R108:e4b598ca8618: [scene] Build window pixmap trees before starting rendering
Branches
Unknown
Tags
Unknown