Changeset View
Changeset View
Standalone View
Standalone View
platformsupport/scenes/opengl/backend.h
Show First 20 Lines • Show All 79 Lines • ▼ Show 20 Line(s) | 54 | public: | |||
---|---|---|---|---|---|
80 | * @param renderedRegion The possibly larger region that has been rendered | 80 | * @param renderedRegion The possibly larger region that has been rendered | ||
81 | * @param damagedRegion The damaged region that should be posted | 81 | * @param damagedRegion The damaged region that should be posted | ||
82 | */ | 82 | */ | ||
83 | virtual void endRenderingFrame(const QRegion &damage, const QRegion &damagedRegion) = 0; | 83 | virtual void endRenderingFrame(const QRegion &damage, const QRegion &damagedRegion) = 0; | ||
84 | virtual void endRenderingFrameForScreen(int screenId, const QRegion &damage, const QRegion &damagedRegion); | 84 | virtual void endRenderingFrameForScreen(int screenId, const QRegion &damage, const QRegion &damagedRegion); | ||
85 | virtual bool makeCurrent() = 0; | 85 | virtual bool makeCurrent() = 0; | ||
86 | virtual void doneCurrent() = 0; | 86 | virtual void doneCurrent() = 0; | ||
87 | virtual bool usesOverlayWindow() const = 0; | 87 | virtual bool usesOverlayWindow() const = 0; | ||
88 | virtual bool hasSwapEvent() const { return true; } | ||||
88 | /** | 89 | /** | ||
89 | * Whether the rendering needs to be split per screen. | 90 | * Whether the rendering needs to be split per screen. | ||
90 | * Default implementation returns @c false. | 91 | * Default implementation returns @c false. | ||
91 | */ | 92 | */ | ||
92 | virtual bool perScreenRendering() const; | 93 | virtual bool perScreenRendering() const; | ||
93 | virtual QRegion prepareRenderingForScreen(int screenId); | 94 | virtual QRegion prepareRenderingForScreen(int screenId); | ||
94 | /** | 95 | /** | ||
95 | * @brief Compositor is going into idle mode, flushes any pending paints. | 96 | * @brief Compositor is going into idle mode, flushes any pending paints. | ||
▲ Show 20 Lines • Show All 230 Lines • Show Last 20 Lines |