aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authorGravatar Mike Reed <reed@google.com>2018-01-08 17:09:54 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-01-08 22:32:51 +0000
commit185ffe916eb374ab3dfe3f42e265d26dacdd30ca (patch)
treee1a3bcdcc9465304117c53f7c0dc99ad339d9507 /tests
parentc59b03071f5b255b5ce42749ff5d8238adca13e2 (diff)
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>
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);
+}