Bug 1052857 - Overdraw should report dst pixels, not src pixels. r=jrmuizel

This commit is contained in:
Benoit Girard 2014-08-12 18:46:16 -04:00
Родитель f2bdad18c7
Коммит 07510ca060
1 изменённых файлов: 6 добавлений и 1 удалений

Просмотреть файл

@ -1059,7 +1059,12 @@ CompositorOGL::DrawQuad(const Rect& aRect,
maskType = MaskType::MaskNone;
}
mPixelsFilled += aRect.width * aRect.height;
{
// XXX: This doesn't handle 3D transforms. It also doesn't handled rotated
// quads. Fix me.
const Rect destRect = aTransform.TransformBounds(aRect);
mPixelsFilled += destRect.width * destRect.height;
}
// Determine the color if this is a color shader and fold the opacity into
// the color since color shaders don't have an opacity uniform.