Changeset View
Changeset View
Standalone View
Standalone View
plugins/platforms/drm/scene_qpainter_drm_backend.h
Show First 20 Lines • Show All 41 Lines • ▼ Show 20 Line(s) | 36 | public: | |||
---|---|---|---|---|---|
42 | bool needsFullRepaint() const override; | 42 | bool needsFullRepaint() const override; | ||
43 | bool usesOverlayWindow() const override; | 43 | bool usesOverlayWindow() const override; | ||
44 | void prepareRenderingFrame() override; | 44 | void prepareRenderingFrame() override; | ||
45 | void present(int mask, const QRegion &damage) override; | 45 | void present(int mask, const QRegion &damage) override; | ||
46 | bool perScreenRendering() const override; | 46 | bool perScreenRendering() const override; | ||
47 | 47 | | |||
48 | private: | 48 | private: | ||
49 | void initOutput(DrmOutput *output); | 49 | void initOutput(DrmOutput *output); | ||
50 | struct Output { | 50 | struct QPainterOutput { | ||
graesslin: just as an idea: maybe change name of the new Output to AbstractOutput to not need to have to… | |||||
51 | DrmDumbBuffer *buffer[2]; | 51 | DrmDumbBuffer *buffer[2]; | ||
52 | DrmOutput *output; | 52 | DrmOutput *output; | ||
53 | int index = 0; | 53 | int index = 0; | ||
54 | }; | 54 | }; | ||
55 | QVector<Output> m_outputs; | 55 | QVector<QPainterOutput> m_outputs; | ||
56 | DrmBackend *m_backend; | 56 | DrmBackend *m_backend; | ||
57 | }; | 57 | }; | ||
58 | } | 58 | } | ||
59 | 59 | | |||
60 | #endif | 60 | #endif |
just as an idea: maybe change name of the new Output to AbstractOutput to not need to have to rename here. I personally like to call abstract classes AbstractOutput. But I leave that to you, it's just an idea I got while seeing this change.