aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/PointTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/PointTest.cpp')
-rw-r--r--tests/PointTest.cpp6
1 files changed, 3 insertions, 3 deletions
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<const SkScalar*>(&p);
const SkScalar* rPtr = SkTCast<const SkScalar*>(&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;