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

Unified Diff: gm/conicpaths.cpp

Issue 1606263002: add arc circle gap gm (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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/conicpaths.cpp
diff --git a/gm/conicpaths.cpp b/gm/conicpaths.cpp
index 71057b8e0bae30ccb1a7388cad7235e1a2525cb2..11d9ab4a607163ff743eeae40f7d7c07a852d8e9 100644
--- a/gm/conicpaths.cpp
+++ b/gm/conicpaths.cpp
@@ -132,3 +132,18 @@ DEF_GM(return new ConicPathsGM;)
//////////////////////////////////////////////////////////////////////////////
+/* arc should be on top of circle */
+DEF_SIMPLE_GM(arccirclegap, canvas, 250, 250) {
+ canvas->translate(50, 100);
+ SkPoint c = { 1052.5390625f, 506.8760978034711f };
+ SkScalar radius = 1096.702150363923f;
+ SkPaint paint;
+ paint.setAntiAlias(true);
+ paint.setStyle(SkPaint::kStroke_Style);
+ canvas->drawCircle(c.fX, c.fY, radius, paint);
+ SkPath path;
+ path.moveTo(288.88884710654133f, -280.26680862609f);
+ path.arcTo(0, 0, -39.00216443306411f, 400.6058925796476f, radius);
+ paint.setColor(0xff007f00);
+ canvas->drawPath(path, paint);
+}
« 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