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

Unified Diff: gm/arcto.cpp

Issue 1805913002: skip stroke outset of all teeny lines (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: simplify example Created 4 years, 9 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 | src/core/SkStroke.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/arcto.cpp
diff --git a/gm/arcto.cpp b/gm/arcto.cpp
index 2897e7ab8638ae069d15384afa7c6f7faebda5ef..60ca486e13d8cd943f295cc1b62730010a4bc969 100644
--- a/gm/arcto.cpp
+++ b/gm/arcto.cpp
@@ -187,3 +187,21 @@ DEF_SIMPLE_GM(parsedpaths, canvas, kParsePathTestDimension, kParsePathTestDimens
sk_fclose(file);
#endif
}
+
+DEF_SIMPLE_GM(bug593049, canvas, 300, 300) {
+ canvas->translate(111, 0);
+
+ SkPath p;
+ p.moveTo(-43.44464063610148f, 79.43535936389853f);
+ const SkScalar yOffset = 122.88f;
+ const SkScalar radius = 61.44f;
+ SkRect oval = SkRect::MakeXYWH(-radius, yOffset - radius, 2 * radius, 2 * radius);
+ p.arcTo(oval, 1.25f * 180, .5f * 180, false);
+
+ SkPaint paint;
+ paint.setStyle(SkPaint::kStroke_Style);
+ paint.setStrokeCap(SkPaint::kRound_Cap);
+ paint.setStrokeWidth(15.36f);
+
+ canvas->drawPath(p, paint);
+}
« no previous file with comments | « no previous file | src/core/SkStroke.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698