Bug 971942: 3. layers.bufferrotation.enabled, layers.componentalpha.enabled, layers.scroll-graph, layers.acceleration.disabled, layers.acceleration.force-enabled moved to gfxPrefs. r=clord

This commit is contained in:
Milan Sreckovic
2014-02-26 21:53:27 -05:00
parent 7ae8237f33
commit 049b2dfae4
12 changed files with 44 additions and 59 deletions

View File

@@ -20,6 +20,7 @@
#include "gfxMatrix.h" // for gfxMatrix
#include "GraphicsFilter.h" // for GraphicsFilter
#include "gfxPlatform.h" // for gfxPlatform
#include "gfxPrefs.h" // for gfxPrefs
#include "gfxRect.h" // for gfxRect
#include "gfxUtils.h" // for NextPowerOfTwo, gfxUtils, etc
#include "mozilla/ArrayUtils.h" // for ArrayLength
@@ -1205,7 +1206,7 @@ CompositorOGL::DrawQuadInternal(const Rect& aRect,
}
break;
case EFFECT_COMPONENT_ALPHA: {
MOZ_ASSERT(gfxPlatform::ComponentAlphaEnabled());
MOZ_ASSERT(gfxPrefs::ComponentAlphaEnabled());
EffectComponentAlpha* effectComponentAlpha =
static_cast<EffectComponentAlpha*>(aEffectChain.mPrimaryEffect.get());
TextureSourceOGL* sourceOnWhite = effectComponentAlpha->mOnWhite->AsSourceOGL();