aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/GrShapeTest.cpp5
-rw-r--r--tests/RectTest.cpp5
2 files changed, 8 insertions, 2 deletions
diff --git a/tests/GrShapeTest.cpp b/tests/GrShapeTest.cpp
index 261a7d2500..ae75f1c886 100644
--- a/tests/GrShapeTest.cpp
+++ b/tests/GrShapeTest.cpp
@@ -14,6 +14,7 @@
#include "SkDashPathEffect.h"
#include "SkPath.h"
#include "SkPathOps.h"
+#include "SkRectPriv.h"
#include "SkSurface.h"
#include "SkClipOpPriv.h"
@@ -1207,8 +1208,8 @@ void test_unknown_path_effect(skiatest::Reporter* reporter, const Geo& geo) {
}
void computeFastBounds(SkRect* dst, const SkRect& src) const override {
*dst = src;
- dst->growToInclude({0, 0});
- dst->growToInclude({100, 100});
+ SkRectPriv::GrowToInclude(dst, {0, 0});
+ SkRectPriv::GrowToInclude(dst, {100, 100});
}
static sk_sp<SkPathEffect> Make() { return sk_sp<SkPathEffect>(new AddLineTosPathEffect); }
Factory getFactory() const override { return nullptr; }
diff --git a/tests/RectTest.cpp b/tests/RectTest.cpp
index 820586c3c6..ae54f4b779 100644
--- a/tests/RectTest.cpp
+++ b/tests/RectTest.cpp
@@ -88,3 +88,8 @@ DEF_TEST(Rect, reporter) {
test_stroke_width_clipping(reporter);
test_skbug4406(reporter);
}
+
+DEF_TEST(Rect_grow, reporter) {
+ test_stroke_width_clipping(reporter);
+ test_skbug4406(reporter);
+}