Changeset View
Changeset View
Standalone View
Standalone View
effects/blur/blur.h
Show First 20 Lines • Show All 51 Lines • ▼ Show 20 Line(s) | 51 | public: | |||
---|---|---|---|---|---|
52 | BlurEffect(); | 52 | BlurEffect(); | ||
53 | ~BlurEffect() override; | 53 | ~BlurEffect() override; | ||
54 | 54 | | |||
55 | static bool supported(); | 55 | static bool supported(); | ||
56 | static bool enabledByDefault(); | 56 | static bool enabledByDefault(); | ||
57 | 57 | | |||
58 | void reconfigure(ReconfigureFlags flags) override; | 58 | void reconfigure(ReconfigureFlags flags) override; | ||
59 | void prePaintScreen(ScreenPrePaintData &data, int time) override; | 59 | void prePaintScreen(ScreenPrePaintData &data, int time) override; | ||
60 | void paintScreen(int mask, QRegion region, KWin::ScreenPaintData & data) override; | ||||
60 | void prePaintWindow(EffectWindow* w, WindowPrePaintData& data, int time) override; | 61 | void prePaintWindow(EffectWindow* w, WindowPrePaintData& data, int time) override; | ||
61 | void drawWindow(EffectWindow *w, int mask, QRegion region, WindowPaintData &data) override; | 62 | void drawWindow(EffectWindow *w, int mask, QRegion region, WindowPaintData &data) override; | ||
62 | void paintEffectFrame(EffectFrame *frame, QRegion region, double opacity, double frameOpacity) override; | 63 | void paintEffectFrame(EffectFrame *frame, QRegion region, double opacity, double frameOpacity) override; | ||
63 | 64 | | |||
64 | bool provides(Feature feature) override; | 65 | bool provides(Feature feature) override; | ||
65 | 66 | | |||
66 | int requestedEffectChainPosition() const override { | 67 | int requestedEffectChainPosition() const override { | ||
67 | return 75; | 68 | return 75; | ||
▲ Show 20 Lines • Show All 41 Lines • ▼ Show 20 Line(s) | 99 | private: | |||
109 | QRegion m_paintedArea; // actually painted area which is greater than m_damagedArea | 110 | QRegion m_paintedArea; // actually painted area which is greater than m_damagedArea | ||
110 | QRegion m_currentBlur; // keeps track of the currently blured area of the windows(from bottom to top) | 111 | QRegion m_currentBlur; // keeps track of the currently blured area of the windows(from bottom to top) | ||
111 | 112 | | |||
112 | int m_downSampleIterations; // number of times the texture will be downsized to half size | 113 | int m_downSampleIterations; // number of times the texture will be downsized to half size | ||
113 | int m_offset; | 114 | int m_offset; | ||
114 | int m_expandSize; | 115 | int m_expandSize; | ||
115 | int m_noiseStrength; | 116 | int m_noiseStrength; | ||
116 | int m_scalingFactor; | 117 | int m_scalingFactor; | ||
118 | int m_screenRotation = 0; | ||||
117 | 119 | | |||
118 | struct OffsetStruct { | 120 | struct OffsetStruct { | ||
119 | float minOffset; | 121 | float minOffset; | ||
120 | float maxOffset; | 122 | float maxOffset; | ||
121 | int expandSize; | 123 | int expandSize; | ||
122 | }; | 124 | }; | ||
123 | 125 | | |||
124 | QVector <OffsetStruct> blurOffsets; | 126 | QVector <OffsetStruct> blurOffsets; | ||
Show All 26 Lines |