kwin/blur: Disable by default on all Intel chipsets

This commit is contained in:
Fredrik Höglund 2011-05-01 22:52:43 +02:00
parent e5ea420e96
commit 7ef8f444f6
2 changed files with 14 additions and 0 deletions

View file

@ -28,8 +28,10 @@
namespace KWin
{
KWIN_EFFECT(blur, BlurEffect)
KWIN_EFFECT_SUPPORTED(blur, BlurEffect::supported())
KWIN_EFFECT_ENABLEDBYDEFAULT(blur, BlurEffect::enabledByDefault())
BlurEffect::BlurEffect()
@ -119,6 +121,16 @@ void BlurEffect::slotPropertyNotify(EffectWindow *w, long atom)
updateBlurRegion(w);
}
bool BlurEffect::enabledByDefault()
{
GLPlatform *gl = GLPlatform::instance();
if (gl->isIntel())
return false;
return true;
}
bool BlurEffect::supported()
{
bool supported = GLRenderTarget::supported() && GLTexture::NPOTTextureSupported() &&

View file

@ -21,6 +21,7 @@
#define BLUR_H
#include <kwineffects.h>
#include <kwinglplatform.h>
#include <kwinglutils.h>
#include <QVector>
@ -39,6 +40,7 @@ public:
~BlurEffect();
static bool supported();
static bool enabledByDefault();
void reconfigure(ReconfigureFlags flags);
void paintScreen(int mask, QRegion region, ScreenPaintData &data);