Bug 1265625 - Remove workaround for fennec, r?jrmuizel
MozReview-Commit-ID: F3IeDPeJwo7
--- a/gfx/layers/opengl/CompositorOGL.cpp
+++ b/gfx/layers/opengl/CompositorOGL.cpp
@@ -1237,28 +1237,16 @@ CompositorOGL::DrawQuad(const Rect& aRec
static_cast<TexturedEffect*>(aEffectChain.mPrimaryEffect.get());
TextureSource *source = texturedEffect->mTexture;
didSetBlendMode = SetBlendMode(gl(), blendMode, texturedEffect->mPremultiplied);
gfx::Filter filter = texturedEffect->mFilter;
Matrix4x4 textureTransform = source->AsSourceOGL()->GetTextureTransform();
-#ifdef MOZ_WIDGET_ANDROID
- gfx::Matrix textureTransform2D;
- if (filter != gfx::Filter::POINT &&
- aTransform.Is2DIntegerTranslation() &&
- textureTransform.Is2D(&textureTransform2D) &&
- textureTransform2D.HasOnlyIntegerTranslation()) {
- // On Android we encounter small resampling errors in what should be
- // pixel-aligned compositing operations. This works around them. This
- // code should not be needed!
- filter = gfx::Filter::POINT;
- }
-#endif
source->AsSourceOGL()->BindTexture(LOCAL_GL_TEXTURE0, filter);
program->SetTextureUnit(0);
program->SetTextureTransform(textureTransform);
if (maskType != MaskType::MaskNone) {
BindMaskForProgram(program, sourceMask, LOCAL_GL_TEXTURE1, maskQuadTransform);
}