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

Unified Diff: gm/strokes.cpp

Issue 1484873003: add more conservative check for wayward divide (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: greater than compare removes need for finite check Created 5 years, 1 month 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/strokes.cpp
diff --git a/gm/strokes.cpp b/gm/strokes.cpp
index bd393829e0a332866deb36f67022eb65b1aaa486..2d76879d9cbf9d723bf4abad4bba9ac6b1977499 100644
--- a/gm/strokes.cpp
+++ b/gm/strokes.cpp
@@ -193,6 +193,22 @@ private:
typedef skiagm::GM INHERITED;
};
+DEF_SIMPLE_GM(CubicStroke, canvas, 384, 384) {
+ SkPaint p;
+ p.setAntiAlias(true);
+ p.setStyle(SkPaint::kStroke_Style);
+ p.setStrokeWidth(1.0720f);
+ SkPath path;
+ path.moveTo(-6000,-6000);
+ path.cubicTo(-3500,5500,-500,5500,2500,-6500);
+ canvas->drawPath(path, p);
+ p.setStrokeWidth(1.0721f);
+ canvas->translate(10, 10);
+ canvas->drawPath(path, p);
+ p.setStrokeWidth(1.0722f);
+ canvas->translate(10, 10);
+ canvas->drawPath(path, p);
+}
class Strokes2GM : public skiagm::GM {
SkPath fPath;
« 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