From 1607863b608b7db6c813228768ed5d72997bbc82 Mon Sep 17 00:00:00 2001 From: "reed@google.com" Date: Tue, 6 Dec 2011 18:56:37 +0000 Subject: rename hasValidCoordinates to isFinite (on SkRect) and reimplement for speed git-svn-id: http://skia.googlecode.com/svn/trunk@2811 2bbb7eff-a529-9590-31e7-b0007b416f81 --- tests/InfRectTest.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests') diff --git a/tests/InfRectTest.cpp b/tests/InfRectTest.cpp index a78eba6dac..12356d9c2f 100644 --- a/tests/InfRectTest.cpp +++ b/tests/InfRectTest.cpp @@ -18,10 +18,10 @@ static void check_invalid(skiatest::Reporter* reporter, SkScalar l, SkScalar t, SkScalar r, SkScalar b) { SkRect rect; rect.set(l, t, r, b); - REPORTER_ASSERT(reporter, !rect.hasValidCoordinates()); + REPORTER_ASSERT(reporter, !rect.isFinite()); } -// Tests that hasValidCoordinates() will reject any rect with +/-inf values +// Tests that isFinite() will reject any rect with +/-inf values // as one of its coordinates. static void TestInfRect(skiatest::Reporter* reporter) { #ifdef SK_SCALAR_IS_FLOAT @@ -33,7 +33,7 @@ static void TestInfRect(skiatest::Reporter* reporter) { SkScalar big = SkIntToScalar(100); SkRect rect = SkRect::MakeXYWH(small, small, big, big); - REPORTER_ASSERT(reporter, rect.hasValidCoordinates()); + REPORTER_ASSERT(reporter, rect.isFinite()); check_invalid(reporter, small, small, big, invalid); check_invalid(reporter, small, small, invalid, big); -- cgit v1.2.3