mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-04 11:26:09 +00:00
Bug 598736 - Use bilinear image scaling on mobile. r=jrmuizel
This commit is contained in:
parent
c1ba021499
commit
5af1b06ef4
@ -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);
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user