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

Unified Diff: tests/DashPathEffectTest.cpp

Issue 1645613006: fix teeny dashed path bug (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 11 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 | « src/core/SkPathMeasure.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/DashPathEffectTest.cpp
diff --git a/tests/DashPathEffectTest.cpp b/tests/DashPathEffectTest.cpp
index f55bcf8a850c61546d622230a59277878de691eb..7f04e8ead2542dd64983533ffaac81d1b3c03e0f 100644
--- a/tests/DashPathEffectTest.cpp
+++ b/tests/DashPathEffectTest.cpp
@@ -87,3 +87,20 @@ DEF_TEST(DashPathEffectTest_asPoints, r) {
}
}
}
+
+DEF_TEST(DashPath_bug4871, r) {
+ SkPath path;
+ path.moveTo(30, 24);
+ path.cubicTo(30.002f, 24, 30, 24, 30, 24);
+ path.close();
+
+ SkScalar intervals[2] = { 1, 1 };
+ SkAutoTUnref<SkPathEffect> dash(SkDashPathEffect::Create(intervals, 2, 0));
+
+ SkPaint paint;
+ paint.setStyle(SkPaint::kStroke_Style);
+ paint.setPathEffect(dash);
+
+ SkPath fill;
+ paint.getFillPath(path, &fill);
+}
« no previous file with comments | « src/core/SkPathMeasure.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698