Changeset View
Changeset View
Standalone View
Standalone View
effects/blur/blur.cpp
Show All 33 Lines | |||||
34 | 34 | | |||
35 | namespace KWin | 35 | namespace KWin | ||
36 | { | 36 | { | ||
37 | 37 | | |||
38 | static const QByteArray s_blurAtomName = QByteArrayLiteral("_KDE_NET_WM_BLUR_BEHIND_REGION"); | 38 | static const QByteArray s_blurAtomName = QByteArrayLiteral("_KDE_NET_WM_BLUR_BEHIND_REGION"); | ||
39 | 39 | | |||
40 | BlurEffect::BlurEffect() | 40 | BlurEffect::BlurEffect() | ||
41 | { | 41 | { | ||
42 | initConfig<BlurConfig>(); | ||||
42 | shader = BlurShader::create(); | 43 | shader = BlurShader::create(); | ||
43 | m_simpleShader = ShaderManager::instance()->generateShaderFromResources(ShaderTrait::MapTexture, QString(), QStringLiteral("logout-blur.frag")); | 44 | m_simpleShader = ShaderManager::instance()->generateShaderFromResources(ShaderTrait::MapTexture, QString(), QStringLiteral("logout-blur.frag")); | ||
44 | if (!m_simpleShader->isValid()) { | 45 | if (!m_simpleShader->isValid()) { | ||
45 | qCDebug(KWINEFFECTS) << "Simple blur shader failed to load"; | 46 | qCDebug(KWINEFFECTS) << "Simple blur shader failed to load"; | ||
46 | } | 47 | } | ||
47 | 48 | | |||
48 | // Offscreen texture that's used as the target for the horizontal blur pass | 49 | // Offscreen texture that's used as the target for the horizontal blur pass | ||
49 | // and the source for the vertical pass. | 50 | // and the source for the vertical pass. | ||
▲ Show 20 Lines • Show All 711 Lines • Show Last 20 Lines |