Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(42)

Unified Diff: gm/circulararcs.cpp

Issue 2261233002: Add stroke-and-fill circular arc test, test near 180deg arc in all circular_arc_tests (Closed) Base URL: https://chromium.googlesource.com/skia.git@master
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/circulararcs.cpp
diff --git a/gm/circulararcs.cpp b/gm/circulararcs.cpp
index 624776f216cb2996c45d0ce15dad736ca0d70b4f..2cb525cc2177f9255adbba3dec83584dbd39597d 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 @@ DEF_ARC_GM(stroke_round) {
};
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);
+}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698