Bug 1006198 - Apply Y flip if necessary to tiled Textures in ImageHost. r=nical

This commit is contained in:
Matt Woodrow 2014-05-13 14:20:26 +12:00
parent e3bcdbd759
commit 1eb1c84d2a

View File

@ -124,6 +124,10 @@ ImageHost::Composite(EffectChain& aEffectChain,
} else {
effect->mTextureCoords = Rect(0, 0, 1, 1);
}
if (mFrontBuffer->GetFlags() & TextureFlags::NEEDS_Y_FLIP) {
effect->mTextureCoords.y = effect->mTextureCoords.YMost();
effect->mTextureCoords.height = -effect->mTextureCoords.height;
}
GetCompositor()->DrawQuad(rect, aClipRect, aEffectChain,
aOpacity, aTransform);
GetCompositor()->DrawDiagnostics(DiagnosticFlags::IMAGE | DiagnosticFlags::BIGIMAGE,