Bug 1345849 - Part 2: Remove unused Triangle::width and height
MozReview-Commit-ID: QfOaZcv2uu
--- a/gfx/2d/Triangle.h
+++ b/gfx/2d/Triangle.h
@@ -17,17 +17,16 @@ namespace gfx {
/**
* A simple triangle data structure.
*/
template<class Units, class F = Float>
struct TriangleTyped
{
PointTyped<Units, F> p1, p2, p3;
- F width, height;
TriangleTyped()
: p1(), p2(), p3() {}
TriangleTyped(PointTyped<Units, F> aP1,
PointTyped<Units, F> aP2,
PointTyped<Units, F> aP3)
: p1(aP1), p2(aP2), p3(aP3) {}
--- a/gfx/layers/Compositor.cpp
+++ b/gfx/layers/Compositor.cpp
@@ -296,18 +296,16 @@ GenerateTexturedTriangles(const gfx::Pol
}
MOZ_ASSERT(rect.width > 0.0f && rect.height > 0.0f);
MOZ_ASSERT(intersection.width > 0.0f && intersection.height > 0.0f);
// Since the texture was created for non-split geometry, we need to
// update the texture coordinates to account for the split.
gfx::TexturedTriangle t(triangle);
- t.width = rect.width;
- t.height = rect.height;
UpdateTextureCoordinates(t, rect, intersection, texRect);
texturedTriangles.AppendElement(Move(t));
}
}
return texturedTriangles;
}