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

Unified Diff: gm/conicpaths.cpp

Issue 2276083002: tiny line breaks gl render (Closed) Base URL: https://skia.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/conicpaths.cpp
diff --git a/gm/conicpaths.cpp b/gm/conicpaths.cpp
index 9e4e9cea9d58d94163d586b8409ed44e3bb20e1f..52e466cdcedb52bce36c8a89858be28128ad5223 100644
--- a/gm/conicpaths.cpp
+++ b/gm/conicpaths.cpp
@@ -147,3 +147,18 @@ DEF_SIMPLE_GM(arccirclegap, canvas, 250, 250) {
paint.setColor(0xff007f00);
canvas->drawPath(path, paint);
}
+
+DEF_SIMPLE_GM(crbug_640176, canvas, 250, 250) {
+ SkPath path;
+ path.moveTo(SkBits2Float(0x00000000), SkBits2Float(0x00000000)); // 0, 0
+ path.lineTo(SkBits2Float(0x42cfd89a), SkBits2Float(0xc2700000)); // 103.923f, -60
+ path.lineTo(SkBits2Float(0x42cfd899), SkBits2Float(0xc2700006)); // 103.923f, -60
+ path.conicTo(SkBits2Float(0x42f00000), SkBits2Float(0xc2009d9c),
+ SkBits2Float(0x42f00001), SkBits2Float(0x00000000),
+ SkBits2Float(0x3f7746ea)); // 120, -32.1539f, 120, 0, 0.965926f
+
+ SkPaint paint;
+ paint.setAntiAlias(true);
+ canvas->translate(125, 125);
+ 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