diff options
author | Cary Clark <caryclark@skia.org> | 2017-11-08 11:44:31 -0500 |
---|---|---|
committer | Ravi Mistry <rmistry@google.com> | 2017-11-08 18:25:17 +0000 |
commit | df429f3beac1c191289ba1e3bd918bf84df57bf5 (patch) | |
tree | 65f7f049b218ef8984d054524c05dd3fcea392a3 /tests/PathCoverageTest.cpp | |
parent | 21ad53fd8839af82bcb11da6ab3e256ee7752f2b (diff) |
move parts of SkPoint to SkPointPriv
Move specialized SkPoint methods to SkPointPriv.
Use constexpr and inline initialization where possible.
R=reed@google.com,bsalomon@google.com
Bug: skia: 6898
Change-Id: I01ec5186f010f2dc80c068c70d9cc352f3221338
Reviewed-on: https://skia-review.googlesource.com/68700
Reviewed-by: Mike Reed <reed@google.com>
Commit-Queue: Ravi Mistry <rmistry@google.com>
Diffstat (limited to 'tests/PathCoverageTest.cpp')
-rw-r--r-- | tests/PathCoverageTest.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/PathCoverageTest.cpp b/tests/PathCoverageTest.cpp index 255156394a..ed5ed0eaeb 100644 --- a/tests/PathCoverageTest.cpp +++ b/tests/PathCoverageTest.cpp @@ -6,7 +6,7 @@ */ #include "SkMathPriv.h" -#include "SkPoint.h" +#include "SkPointPriv.h" #include "SkScalar.h" #include "Test.h" @@ -42,7 +42,7 @@ static inline int estimate_distance(const SkPoint points[]) { } static inline SkScalar compute_distance(const SkPoint points[]) { - return points[1].distanceToLineSegmentBetween(points[0], points[2]); + return SkPointPriv::DistanceToLineSegmentBetween(points[1], points[0], points[2]); } static inline uint32_t estimate_pointCount(int distance) { |