diff options
author | Lars Knoll <lars.knoll@qt.io> | 2017-10-30 15:21:33 +0100 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2017-11-03 15:37:48 +0000 |
commit | e180ab18c1e5dabcbf5965325fb957bd745d4e97 (patch) | |
tree | fba042ef686077d9522376b715ad1987515bb224 /src/quick/scenegraph/adaptations/software/qsgsoftwarelayer.cpp | |
parent | e7b73cc5e2cd1564d7f2ee9de1340b0913b4ecdf (diff) |
Mark layers in the SW rasterizer as opaque if possible
If the content of a layer completely covers every pixel of
it, mark that layer as opaque so that we can avoid alpha
blending where possible.
Change-Id: Ia0be4e7a96ecddd31a26f353509de976bcc9e397
Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io>
Reviewed-by: Volker Krause <volker.krause@kdab.com>
Diffstat (limited to 'src/quick/scenegraph/adaptations/software/qsgsoftwarelayer.cpp')
-rw-r--r-- | src/quick/scenegraph/adaptations/software/qsgsoftwarelayer.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/quick/scenegraph/adaptations/software/qsgsoftwarelayer.cpp b/src/quick/scenegraph/adaptations/software/qsgsoftwarelayer.cpp index bd5d8f72c0..9d30c43f87 100644 --- a/src/quick/scenegraph/adaptations/software/qsgsoftwarelayer.cpp +++ b/src/quick/scenegraph/adaptations/software/qsgsoftwarelayer.cpp @@ -229,9 +229,6 @@ void QSGSoftwareLayer::grab() if (m_pixmap.size() != m_size) { m_pixmap = QPixmap(m_size); m_pixmap.setDevicePixelRatio(m_device_pixel_ratio); - // This fill here is wasteful, but necessary because it is the only way - // to force a QImage based pixmap to have an alpha channel. - m_pixmap.fill(Qt::transparent); } // Render texture. |