Add stroke-and-fill circular arc test, test near 180deg arc in all circular_arc_tests
BUG=skia:5227
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2261233002
Review-Url: https://codereview.chromium.org/2261233002
diff --git a/gm/circulararcs.cpp b/gm/circulararcs.cpp
index 624776f..2cb525c 100644
--- a/gm/circulararcs.cpp
+++ b/gm/circulararcs.cpp
@@ -10,7 +10,7 @@
#include "gm.h"
static constexpr SkScalar kStarts[] = {0.f, 10.f, 30.f, 45.f, 90.f, 165.f, 180.f, 270.f};
-static constexpr SkScalar kSweeps[] = {1.f, 45.f, 90.f, 130.f, 180.f, 270.f, 300.f, 355.f};
+static constexpr SkScalar kSweeps[] = {1.f, 45.f, 90.f, 130.f, 180.f, 184.f, 300.f, 355.f};
static constexpr SkScalar kDiameter = 40.f;
static constexpr SkRect kRect = {0.f, 0.f, kDiameter, kDiameter};
static constexpr int kW = 1000;
@@ -101,3 +101,11 @@
};
draw_arcs(canvas, setStroke);
}
+
+DEF_ARC_GM(fill_and_Stroke) {
+ auto setStroke = [] (SkPaint* p) {
+ p->setStyle(SkPaint::kStrokeAndFill_Style);
+ p->setStrokeCap(SkPaint::kRound_Cap);
+ };
+ draw_arcs(canvas, setStroke);
+}