Changeset View
Changeset View
Standalone View
Standalone View
plugins/qpa/backingstore.h
Show First 20 Lines • Show All 42 Lines • ▼ Show 20 Line(s) | 41 | public: | |||
---|---|---|---|---|---|
43 | virtual ~BackingStore(); | 43 | virtual ~BackingStore(); | ||
44 | 44 | | |||
45 | QPaintDevice *paintDevice() override; | 45 | QPaintDevice *paintDevice() override; | ||
46 | void flush(QWindow *window, const QRegion ®ion, const QPoint &offset) override; | 46 | void flush(QWindow *window, const QRegion ®ion, const QPoint &offset) override; | ||
47 | void resize(const QSize &size, const QRegion &staticContents) override; | 47 | void resize(const QSize &size, const QRegion &staticContents) override; | ||
48 | void beginPaint(const QRegion &) override; | 48 | void beginPaint(const QRegion &) override; | ||
49 | 49 | | |||
50 | private: | 50 | private: | ||
51 | int scale() const; | ||||
51 | KWayland::Client::ShmPool *m_shm; | 52 | KWayland::Client::ShmPool *m_shm; | ||
52 | QWeakPointer<KWayland::Client::Buffer> m_buffer; | 53 | QWeakPointer<KWayland::Client::Buffer> m_buffer; | ||
53 | QImage m_backBuffer; | 54 | QImage m_backBuffer; | ||
54 | QSize m_size; | 55 | QSize m_size; | ||
55 | }; | 56 | }; | ||
56 | 57 | | |||
57 | } | 58 | } | ||
58 | } | 59 | } | ||
59 | 60 | | |||
60 | #endif | 61 | #endif |