Loading libs/hwui/ShadowTessellator.h +0 −2 Original line number Diff line number Diff line Loading @@ -80,8 +80,6 @@ public: static Vector2 centroid2d(const Vector2* poly, int polyLength); static bool isClockwise(const Vector2* polygon, int len); static Vector2 calculateNormal(const Vector2& p1, const Vector2& p2); static int getExtraVertexNumber(const Vector2& vector1, const Vector2& vector2, Loading libs/hwui/SpotShadow.cpp +0 −15 Original line number Diff line number Diff line Loading @@ -301,21 +301,6 @@ bool SpotShadow::testPointInsidePolygon(const Vector2 testPoint, return c; } /** * Make the polygon turn clockwise. * * @param polygon the polygon as a Vector2 array. * @param len the number of points of the polygon */ void SpotShadow::makeClockwise(Vector2* polygon, int len) { if (polygon == nullptr || len == 0) { return; } if (!ShadowTessellator::isClockwise(polygon, len)) { reverse(polygon, len); } } /** * Reverse the polygon * Loading libs/hwui/SpotShadow.h +0 −1 Original line number Diff line number Diff line Loading @@ -54,7 +54,6 @@ private: static void quicksortX(Vector2* points, int low, int high); static bool testPointInsidePolygon(const Vector2 testPoint, const Vector2* poly, int len); static void makeClockwise(Vector2* polygon, int len); static void reverse(Vector2* polygon, int len); static void generateTriangleStrip(bool isCasterOpaque, float shadowStrengthScale, Loading Loading
libs/hwui/ShadowTessellator.h +0 −2 Original line number Diff line number Diff line Loading @@ -80,8 +80,6 @@ public: static Vector2 centroid2d(const Vector2* poly, int polyLength); static bool isClockwise(const Vector2* polygon, int len); static Vector2 calculateNormal(const Vector2& p1, const Vector2& p2); static int getExtraVertexNumber(const Vector2& vector1, const Vector2& vector2, Loading
libs/hwui/SpotShadow.cpp +0 −15 Original line number Diff line number Diff line Loading @@ -301,21 +301,6 @@ bool SpotShadow::testPointInsidePolygon(const Vector2 testPoint, return c; } /** * Make the polygon turn clockwise. * * @param polygon the polygon as a Vector2 array. * @param len the number of points of the polygon */ void SpotShadow::makeClockwise(Vector2* polygon, int len) { if (polygon == nullptr || len == 0) { return; } if (!ShadowTessellator::isClockwise(polygon, len)) { reverse(polygon, len); } } /** * Reverse the polygon * Loading
libs/hwui/SpotShadow.h +0 −1 Original line number Diff line number Diff line Loading @@ -54,7 +54,6 @@ private: static void quicksortX(Vector2* points, int low, int high); static bool testPointInsidePolygon(const Vector2 testPoint, const Vector2* poly, int len); static void makeClockwise(Vector2* polygon, int len); static void reverse(Vector2* polygon, int len); static void generateTriangleStrip(bool isCasterOpaque, float shadowStrengthScale, Loading