9#include <QtCore/QDebug>
13#if defined(QQNXRASTERBACKINGSTORE_DEBUG)
14#define qRasterBackingStoreDebug qDebug
16#define qRasterBackingStoreDebug QT_NO_QDEBUG_MACRO
23 m_needsPosting(
false),
38 if (platformWindow() && platformWindow()->hasBuffers())
56 auto *targetWindow =
window
60 targetWindow->post(region);
62 m_needsPosting =
false;
80 m_needsPosting =
true;
95 m_needsPosting =
true;
99 if (
window()->requestedFormat().alphaBufferSize() > 0) {
100 auto platformScreen =
static_cast<QQnxScreen *
>(platformWindow()->
screen());
101 for (
const QRect &
r : region) {
104 SCREEN_BLIT_COLOR, 0x00000000,
105 SCREEN_BLIT_DESTINATION_X,
r.x(),
106 SCREEN_BLIT_DESTINATION_Y,
r.y(),
107 SCREEN_BLIT_DESTINATION_WIDTH,
r.width(),
108 SCREEN_BLIT_DESTINATION_HEIGHT,
r.height(),
112 platformWindow()->renderBuffer().nativeBuffer(), bg),
113 "failed to clear transparent regions");
116 SCREEN_WAIT_IDLE),
"failed to flush blits");
\inmodule QtCore\reentrant
const QImage * image() const
void beginPaint(const QRegion ®ion) override
This function is called before painting onto the surface begins, with the region in which the paintin...
QPaintDevice * paintDevice() override
Implement this function to return the appropriate paint device.
~QQnxRasterBackingStore()
void resize(const QSize &size, const QRegion &staticContents) override
bool scroll(const QRegion &area, int dx, int dy) override
Scrolls the given area dx pixels to the right and dy downward; both dx and dy may be negative.
QQnxRasterBackingStore(QWindow *window)
void flush(QWindow *window, const QRegion ®ion, const QPoint &offset) override
Flushes the given region from the specified window.
void endPaint() override
This function is called after painting onto the surface has ended.
QQnxBuffer & renderBuffer()
void scroll(const QRegion ®ion, int dx, int dy, bool flush=false)
QPlatformScreen * screen() const override
Returns the platform screen handle corresponding to this platform window, or null if the window is no...
\inmodule QtCore\reentrant
The QRegion class specifies a clip region for a painter.
Combined button and popup list for selecting options.
static int area(const QSize &s)
GLenum GLuint GLintptr GLsizeiptr size
[1]
GLenum GLuint GLintptr offset
#define Q_SCREEN_CHECKERROR(x, message)
#define qRasterBackingStoreDebug