From 531191fefebb5bed6177946e2e227ddff292cff2 Mon Sep 17 00:00:00 2001 From: caryclark Date: Wed, 24 Aug 2016 11:59:30 -0700 Subject: [PATCH] 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 --- gm/conicpaths.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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); +}