Changeset View
Changeset View
Standalone View
Standalone View
libkwineffects/kwineffectquickview.h
Show First 20 Lines • Show All 54 Lines • ▼ Show 20 Line(s) | |||||
55 | * blitting is performed when we update our FBO to keep kwin's render loop | 55 | * blitting is performed when we update our FBO to keep kwin's render loop | ||
56 | * as fast as possible. | 56 | * as fast as possible. | ||
57 | */ | 57 | */ | ||
58 | class KWINEFFECTS_EXPORT EffectQuickView : public QObject | 58 | class KWINEFFECTS_EXPORT EffectQuickView : public QObject | ||
59 | { | 59 | { | ||
60 | Q_OBJECT | 60 | Q_OBJECT | ||
61 | 61 | | |||
62 | public: | 62 | public: | ||
63 | static void setShareContext(std::unique_ptr<QOpenGLContext> context); | 63 | static void setUsingShareContexts(bool); | ||
64 | 64 | | |||
65 | enum class ExportMode { | 65 | enum class ExportMode { | ||
66 | /** The contents will be available as a texture in the shared contexts. Image will be blank*/ | 66 | /** The contents will be available as a texture in the shared contexts. Image will be blank*/ | ||
67 | Texture, | 67 | Texture, | ||
68 | /** The contents will be blit during the update into a QImage buffer. */ | 68 | /** The contents will be blit during the update into a QImage buffer. */ | ||
69 | Image | 69 | Image | ||
70 | }; | 70 | }; | ||
71 | 71 | | |||
▲ Show 20 Lines • Show All 108 Lines • Show Last 20 Lines |