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
This commit is contained in:
parent
bf783b335c
commit
531191fefe
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user