add test for wacky conic edges (disabled for now)
Bug: 850350 Change-Id: Ib73c27da14a74ec6e3b5c04c2f5c9dd7e2462f1c Reviewed-on: https://skia-review.googlesource.com/136601 Reviewed-by: Mike Reed <reed@google.com> Commit-Queue: Mike Reed <reed@google.com>
This commit is contained in:
parent
51382998dc
commit
9ffe3dc245
@ -444,3 +444,29 @@ DEF_TEST(giant_path_region, reporter) {
|
||||
rgn.setPath(path, SkRegion(ir));
|
||||
}
|
||||
|
||||
DEF_TEST(rrect_region, reporter) {
|
||||
SkMatrix m;
|
||||
m.reset();
|
||||
m[1] = 0.753662348f;
|
||||
m[3] = 1.40079998E+20f;
|
||||
|
||||
const SkPoint corners[] = {
|
||||
{ 2.65876e-19f, 0.0194088f },
|
||||
{ 4896, 0.00114702f },
|
||||
{ 0, 0 },
|
||||
{ 0.00114702f, 0.00495333f },
|
||||
};
|
||||
SkRRect rrect;
|
||||
rrect.setRectRadii({-8.72387e-31f, 1.29996e-38f, 4896, 1.125f}, corners);
|
||||
|
||||
SkPath path;
|
||||
path.addRRect(rrect);
|
||||
path.transform(m);
|
||||
|
||||
SkRegion rgn;
|
||||
if (false) {
|
||||
// this assserts in the debug build. see crbug.com/850350
|
||||
rgn.setPath(path, SkRegion{SkIRect{0, 0, 24, 24}});
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user