make growToInclude private
Bug: skia:
Change-Id: Id55344ba2f33563d22c2bf4d5829a9a31095a47d
Reviewed-on: https://skia-review.googlesource.com/92143
Commit-Queue: Mike Reed <reed@google.com>
Reviewed-by: Cary Clark <caryclark@google.com>
Reviewed-by: Brian Salomon <bsalomon@google.com>
diff --git a/tests/GrShapeTest.cpp b/tests/GrShapeTest.cpp
index 261a7d2..ae75f1c 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 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 820586c..ae54f4b 100644
--- a/tests/RectTest.cpp
+++ b/tests/RectTest.cpp
@@ -88,3 +88,8 @@
test_stroke_width_clipping(reporter);
test_skbug4406(reporter);
}
+
+DEF_TEST(Rect_grow, reporter) {
+ test_stroke_width_clipping(reporter);
+ test_skbug4406(reporter);
+}