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/RoundRectTest.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tests/RoundRectTest.cpp') diff --git a/tests/RoundRectTest.cpp b/tests/RoundRectTest.cpp index d9b7a9aa08..2e31cf1b65 100644 --- a/tests/RoundRectTest.cpp +++ b/tests/RoundRectTest.cpp @@ -6,6 +6,7 @@ */ #include "SkMatrix.h" +#include "SkPointPriv.h" #include "SkRRect.h" #include "Test.h" @@ -197,7 +198,8 @@ static void test_round_rect_basic(skiatest::Reporter* reporter) { for (int i = 0; i < 4; ++i) { REPORTER_ASSERT(reporter, - rr2.radii((SkRRect::Corner) i).equalsWithinTolerance(halfPoint)); + SkPointPriv::EqualsWithinTolerance(rr2.radii((SkRRect::Corner) i), + halfPoint)); } SkRRect rr2_2; // construct the same RR using the most general set function SkVector rr2_2_radii[4] = { { halfPoint.fX, halfPoint.fY }, { halfPoint.fX, halfPoint.fY }, -- cgit v1.2.3