5#include <private/qimage_p.h>
23 if (flushedWindow->surfaceType() !=
window()->surfaceType()) {
24 qWarning() <<
"Cannot flush child window" << flushedWindow
25 <<
"with surface type" << flushedWindow->surfaceType() <<
";"
35 switch (
window()->surfaceType()) {
51 rhiFlush(flushedWindow, flushedWindow->devicePixelRatio(),
52 region,
offset, &emptyTextureList, translucentBackground);
bool hasAlphaChannel() const
Returns true if the image has a format that respects the alpha channel, otherwise returns false.
static QPixelFormat toPixelFormat(QImage::Format format) noexcept
Converts format into a QPixelFormat.
Format
The following image formats are available in Qt.
\inmodule QtCore\reentrant
virtual QImage::Format format() const
The QRegion class specifies a clip region for a painter.
QRhiBackingStore(QWindow *window)
void flush(QWindow *window, const QRegion ®ion, const QPoint &offset) override
Flushes the given region from the specified window.
QImage::Format format() const override
SurfaceType surfaceType() const override
Returns the surface type of the window.
Combined button and popup list for selecting options.
QImage::Format qt_maybeDataCompatibleAlphaVersion(QImage::Format format)
GLenum GLuint GLintptr offset
QVideoFrameFormat::PixelFormat fmt