1 | // Copyright (C) 2016 The Qt Company Ltd. |
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only |
3 | |
4 | #ifndef QPLATFORMGRAPHICSBUFFERHELPER_H |
5 | #define QPLATFORMGRAPHICSBUFFERHELPER_H |
6 | |
7 | #include <QtGui/qtguiglobal.h> |
8 | #include <QtGui/qpa/qplatformgraphicsbuffer.h> |
9 | |
10 | QT_BEGIN_NAMESPACE |
11 | |
12 | namespace QPlatformGraphicsBufferHelper { |
13 | Q_GUI_EXPORT bool lockAndBindToTexture(QPlatformGraphicsBuffer *graphicsBuffer, bool *swizzleRandB, bool *premultipliedB, const QRect &rect = QRect()); |
14 | bool bindSWToTexture(const QPlatformGraphicsBuffer *graphicsBuffer, bool *swizzleRandB = nullptr, bool *premultipliedB = nullptr, const QRect &rect = QRect()); |
15 | } |
16 | |
17 | QT_END_NAMESPACE |
18 | |
19 | #endif |
20 | |