diff options
author | Jonas Karlsson <jonas.karlsson@qt.io> | 2021-01-21 12:45:55 +0100 |
---|---|---|
committer | Jonas Karlsson <jonas.karlsson@qt.io> | 2021-01-21 18:32:27 +0100 |
commit | 1da34aa31ebebbbf96607e82da577c44e8905c15 (patch) | |
tree | 8d2ae96678500fd615fe77919867bffd8ef564ca /src/compositor/hardware_integration | |
parent | b3c2f8e6d478cd080653000378ae1392a3baef25 (diff) |
Use new QTextureFileData::getDataView method
Change-Id: I18b96d3ca6c539af811027b6d854dd77251523ed
Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>
Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io>
Diffstat (limited to 'src/compositor/hardware_integration')
-rw-r--r-- | src/compositor/hardware_integration/qwlserverbufferintegration_p.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/compositor/hardware_integration/qwlserverbufferintegration_p.h b/src/compositor/hardware_integration/qwlserverbufferintegration_p.h index 96efd9e46..c1b044ba1 100644 --- a/src/compositor/hardware_integration/qwlserverbufferintegration_p.h +++ b/src/compositor/hardware_integration/qwlserverbufferintegration_p.h @@ -97,9 +97,10 @@ public: virtual bool supportsFormat(ServerBuffer::Format format) const = 0; virtual ServerBuffer *createServerBufferFromImage(const QImage &qimage, ServerBuffer::Format format) = 0; - virtual ServerBuffer *createServerBufferFromData(const QByteArray &data, const QSize &size, uint glInternalFormat) + virtual ServerBuffer *createServerBufferFromData(QByteArrayView view, const QSize &size, + uint glInternalFormat) { - Q_UNUSED(data); + Q_UNUSED(view); Q_UNUSED(size); Q_UNUSED(glInternalFormat); return nullptr; |