handle large rects, rename helper
To fix gm/bigrect, needed to do adjust "largest" rect so it doesn't become empty when round-tripping with SkRect/SkIRect.
I renamed it after this.
Bug: skia:
Change-Id: I747782c8456da603cf298275d2300ea1996e7629
Reviewed-on: https://skia-review.googlesource.com/95563
Commit-Queue: Mike Reed <reed@google.com>
Reviewed-by: Yuqian Li <liyuqian@google.com>
diff --git a/tests/RectTest.cpp b/tests/RectTest.cpp
index 39ba073..6a588b7 100644
--- a/tests/RectTest.cpp
+++ b/tests/RectTest.cpp
@@ -96,11 +96,11 @@
}
DEF_TEST(Rect_largest, reporter) {
- REPORTER_ASSERT(reporter, !SkRectPriv::MakeILargest().isEmpty());
+ REPORTER_ASSERT(reporter, !SkRectPriv::MakeILarge().isEmpty());
REPORTER_ASSERT(reporter, SkRectPriv::MakeILargestInverted().isEmpty());
REPORTER_ASSERT(reporter, !SkRectPriv::MakeLargest().isEmpty());
- REPORTER_ASSERT(reporter, !SkRectPriv::MakeLargestS32().isEmpty());
+ REPORTER_ASSERT(reporter, !SkRectPriv::MakeLargeS32().isEmpty());
REPORTER_ASSERT(reporter, SkRectPriv::MakeLargestInverted().isEmpty());
}