From 5af1b06ef4f1dc23f50d1d09d0c4b89040cf1e55 Mon Sep 17 00:00:00 2001 From: Matt Brubeck Date: Fri, 8 Apr 2011 10:15:37 -0700 Subject: [PATCH] Bug 598736 - Use bilinear image scaling on mobile. r=jrmuizel --- gfx/thebes/gfxDrawable.cpp | 3 --- layout/base/nsLayoutUtils.cpp | 4 ---- 2 files changed, 7 deletions(-) diff --git a/gfx/thebes/gfxDrawable.cpp b/gfx/thebes/gfxDrawable.cpp index c9d8ca3269af..6edb2e8a3463 100644 --- a/gfx/thebes/gfxDrawable.cpp +++ b/gfx/thebes/gfxDrawable.cpp @@ -172,9 +172,6 @@ gfxSurfaceDrawable::Draw(gfxContext* aContext, PreparePatternForUntiledDrawing(pattern, deviceSpaceToImageSpace, surfaceType, currentTarget, filter); } -#ifdef MOZ_GFX_OPTIMIZE_MOBILE - pattern->SetFilter(gfxPattern::FILTER_FAST); -#endif pattern->SetMatrix(gfxMatrix(aTransform).Multiply(mTransform)); aContext->NewPath(); aContext->SetPattern(pattern); diff --git a/layout/base/nsLayoutUtils.cpp b/layout/base/nsLayoutUtils.cpp index 2d6d260ab278..29b2b3c736f9 100644 --- a/layout/base/nsLayoutUtils.cpp +++ b/layout/base/nsLayoutUtils.cpp @@ -3030,11 +3030,7 @@ nsLayoutUtils::GetClosestLayer(nsIFrame* aFrame) GraphicsFilter nsLayoutUtils::GetGraphicsFilterForFrame(nsIFrame* aForFrame) { -#ifdef MOZ_GFX_OPTIMIZE_MOBILE - GraphicsFilter defaultFilter = gfxPattern::FILTER_NEAREST; -#else GraphicsFilter defaultFilter = gfxPattern::FILTER_GOOD; -#endif #ifdef MOZ_SVG nsIFrame *frame = nsCSSRendering::IsCanvasFrame(aForFrame) ? nsCSSRendering::FindBackgroundStyleFrame(aForFrame) : aForFrame;