Commit 77091f7f authored by Vlad Zahorodnii's avatar Vlad Zahorodnii
Browse files

Remove manual discardWindowPixmap() calls in InternalClient

SurfaceItemInternal will discard the current pixmap if the buffer size
changes. Also, one of the goal of the scene redesign is to keep things
such as this out of Toplevel subclasses.
parent 119b00f8
......@@ -373,10 +373,7 @@ void InternalClient::present(const QSharedPointer<QOpenGLFramebufferObject> fbo)
commitGeometry(QRect(pos(), clientSizeToFrameSize(bufferSize)));
markAsMapped();
if (m_internalFBO != fbo) {
discardWindowPixmap();
m_internalFBO = fbo;
}
m_internalFBO = fbo;
setDepth(32);
surfaceItem()->addDamage(surfaceItem()->rect());
......@@ -391,10 +388,6 @@ void InternalClient::present(const QImage &image, const QRegion &damage)
commitGeometry(QRect(pos(), clientSizeToFrameSize(bufferSize)));
markAsMapped();
if (m_internalImage.size() != image.size()) {
discardWindowPixmap();
}
m_internalImage = image;
setDepth(32);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment