Bug 1345849 - Part 2: Remove unused Triangle::width and height draft
authorMiko Mynttinen <mikokm@gmail.com>
Mon, 27 Mar 2017 16:22:35 -0400
changeset 551975 9baf24ddf53db7c17e2aec69e837214ef5694553
parent 551974 5cd00831c5d58cb7145bf9f89814a9b4c0a95dad
child 621695 967ec7864af06f79ababa235d7b83d4dc57f5dcb
push id51215
push userbmo:mikokm@gmail.com
push dateMon, 27 Mar 2017 20:25:50 +0000
bugs1345849
milestone55.0a1
Bug 1345849 - Part 2: Remove unused Triangle::width and height MozReview-Commit-ID: QfOaZcv2uu
gfx/2d/Triangle.h
gfx/layers/Compositor.cpp
--- 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;
 }