summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/openwfd/qopenwfdbackingstore.cpp
blob: 2638d8cd5abebaa4d24dd8e2a957d1537f1340ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#include "qopenwfdbackingstore.h"

QOpenWFDBackingStore::QOpenWFDBackingStore(QWindow *window)
    : QPlatformBackingStore(window)
{
}

QPaintDevice * QOpenWFDBackingStore::paintDevice()
{
    return &mImage;
}

//we don't support flush yet :)
void QOpenWFDBackingStore::flush(QWindow *window, const QRegion &region, const QPoint &offset)
{
    Q_UNUSED(window);
    Q_UNUSED(region);
    Q_UNUSED(offset);
}

void QOpenWFDBackingStore::resize(const QSize &size, const QRegion &staticContents)
{
    Q_UNUSED(staticContents);
    mImage = QImage(size,QImage::Format_RGB32);
}