summaryrefslogtreecommitdiffstats
path: root/gfx/layers/composite/CanvasLayerComposite.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gfx/layers/composite/CanvasLayerComposite.cpp')
-rw-r--r--gfx/layers/composite/CanvasLayerComposite.cpp13
1 files changed, 1 insertions, 12 deletions
diff --git a/gfx/layers/composite/CanvasLayerComposite.cpp b/gfx/layers/composite/CanvasLayerComposite.cpp
index 86f25b1ee..5ccbeeab9 100644
--- a/gfx/layers/composite/CanvasLayerComposite.cpp
+++ b/gfx/layers/composite/CanvasLayerComposite.cpp
@@ -133,18 +133,7 @@ CanvasLayerComposite::CleanupResources()
gfx::SamplingFilter
CanvasLayerComposite::GetSamplingFilter()
{
- gfx::SamplingFilter filter = mSamplingFilter;
-#ifdef ANDROID
- // Bug 691354
- // Using the LINEAR filter we get unexplained artifacts.
- // Use NEAREST when no scaling is required.
- Matrix matrix;
- bool is2D = GetEffectiveTransform().Is2D(&matrix);
- if (is2D && !ThebesMatrix(matrix).HasNonTranslationOrFlip()) {
- filter = SamplingFilter::POINT;
- }
-#endif
- return filter;
+ return mSamplingFilter;
}
void