Changeset View
Changeset View
Standalone View
Standalone View
effects/blur/blur.h
Show All 23 Lines | |||||
24 | #include <kwineffects.h> | 24 | #include <kwineffects.h> | ||
25 | #include <kwinglplatform.h> | 25 | #include <kwinglplatform.h> | ||
26 | #include <kwinglutils.h> | 26 | #include <kwinglutils.h> | ||
27 | 27 | | |||
28 | #include <QVector> | 28 | #include <QVector> | ||
29 | #include <QVector2D> | 29 | #include <QVector2D> | ||
30 | #include <QStack> | 30 | #include <QStack> | ||
31 | 31 | | |||
32 | namespace KWayland | 32 | namespace KWaylandServer | ||
33 | { | | |||
34 | namespace Server | | |||
35 | { | 33 | { | ||
36 | class BlurManagerInterface; | 34 | class BlurManagerInterface; | ||
37 | } | 35 | } | ||
38 | } | | |||
39 | 36 | | |||
40 | namespace KWin | 37 | namespace KWin | ||
41 | { | 38 | { | ||
42 | 39 | | |||
43 | static const int borderSize = 5; | 40 | static const int borderSize = 5; | ||
44 | 41 | | |||
45 | class BlurShader; | 42 | class BlurShader; | ||
46 | 43 | | |||
▲ Show 20 Lines • Show All 79 Lines • ▼ Show 20 Line(s) | 95 | private: | |||
126 | struct BlurValuesStruct { | 123 | struct BlurValuesStruct { | ||
127 | int iteration; | 124 | int iteration; | ||
128 | float offset; | 125 | float offset; | ||
129 | }; | 126 | }; | ||
130 | 127 | | |||
131 | QVector <BlurValuesStruct> blurStrengthValues; | 128 | QVector <BlurValuesStruct> blurStrengthValues; | ||
132 | 129 | | |||
133 | QMap <EffectWindow*, QMetaObject::Connection> windowBlurChangedConnections; | 130 | QMap <EffectWindow*, QMetaObject::Connection> windowBlurChangedConnections; | ||
134 | KWayland::Server::BlurManagerInterface *m_blurManager = nullptr; | 131 | KWaylandServer::BlurManagerInterface *m_blurManager = nullptr; | ||
135 | }; | 132 | }; | ||
136 | 133 | | |||
137 | inline | 134 | inline | ||
138 | bool BlurEffect::provides(Effect::Feature feature) | 135 | bool BlurEffect::provides(Effect::Feature feature) | ||
139 | { | 136 | { | ||
140 | if (feature == Blur) { | 137 | if (feature == Blur) { | ||
141 | return true; | 138 | return true; | ||
142 | } | 139 | } | ||
143 | return KWin::Effect::provides(feature); | 140 | return KWin::Effect::provides(feature); | ||
144 | } | 141 | } | ||
145 | 142 | | |||
146 | 143 | | |||
147 | } // namespace KWin | 144 | } // namespace KWin | ||
148 | 145 | | |||
149 | #endif | 146 | #endif | ||
150 | 147 | |