aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm/conicpaths.cpp
diff options
context:
space:
mode:
authorGravatar caryclark <caryclark@google.com>2016-08-24 11:59:30 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-08-24 11:59:30 -0700
commit531191fefebb5bed6177946e2e227ddff292cff2 (patch)
tree89db73a482aa34d97e379a65abf9f2d39bd4d921 /gm/conicpaths.cpp
parentbf783b335cb4d941ac8848a44f6d21912d6eeda2 (diff)
tiny line breaks gl render
This pie cut draws correctly on raster but extends to the right on Ganesh. The path is not convex, and has a tiny line that contributes to the error. TBR=robertphillips@google.com BUG=640176 GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2276083002 Review-Url: https://codereview.chromium.org/2276083002
Diffstat (limited to 'gm/conicpaths.cpp')
-rw-r--r--gm/conicpaths.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/gm/conicpaths.cpp b/gm/conicpaths.cpp
index 9e4e9cea9d..6d1fc00f22 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);
+}