From df429f3beac1c191289ba1e3bd918bf84df57bf5 Mon Sep 17 00:00:00 2001 From: Cary Clark Date: Wed, 8 Nov 2017 11:44:31 -0500 Subject: 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 Commit-Queue: Ravi Mistry --- tests/PointTest.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/PointTest.cpp') diff --git a/tests/PointTest.cpp b/tests/PointTest.cpp index c0d1f26086..76ac3a1a79 100644 --- a/tests/PointTest.cpp +++ b/tests/PointTest.cpp @@ -6,7 +6,7 @@ */ // Unit tests for src/core/SkPoint.cpp and its header -#include "SkPoint.h" +#include "SkPointPriv.h" #include "SkRect.h" #include "Test.h" @@ -17,7 +17,7 @@ static void test_casts(skiatest::Reporter* reporter) { const SkScalar* pPtr = SkTCast(&p); const SkScalar* rPtr = SkTCast(&r); - REPORTER_ASSERT(reporter, p.asScalars() == pPtr); + REPORTER_ASSERT(reporter, SkPointPriv::AsScalars(p) == pPtr); REPORTER_ASSERT(reporter, r.asScalars() == rPtr); } @@ -146,7 +146,7 @@ DEF_TEST(Point_setLengthFast, reporter) { SkPoint slow = kOne, fast = kOne; slow.setLength(tests[i]); - fast.setLengthFast(tests[i]); + SkPointPriv::SetLengthFast(&fast, tests[i]); if (slow.length() < FLT_MIN && fast.length() < FLT_MIN) continue; -- cgit v1.2.3