diff options
author | 2018-02-12 15:56:06 -0500 | |
---|---|---|
committer | 2018-02-12 21:45:53 +0000 | |
commit | d72d6c5f8a4131d3767f7b07fa90a0cc5f04b5e5 (patch) | |
tree | 94db1672810dac3c39d973538f250a3bbc9e5821 /tests | |
parent | 8684c71e6669999ff82e93a26d73d964dbcdf8f0 (diff) |
underflow makes it hard to compute proper radii
Bug: skia:6209
Change-Id: I7c13d58db36c959f6add0638b72fa068ce0c2266
Reviewed-on: https://skia-review.googlesource.com/106740
Reviewed-by: Mike Reed <reed@google.com>
Commit-Queue: Mike Reed <reed@google.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/RRectInPathTest.cpp | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/RRectInPathTest.cpp b/tests/RRectInPathTest.cpp index 4aa535ea81..367cdb7476 100644 --- a/tests/RRectInPathTest.cpp +++ b/tests/RRectInPathTest.cpp @@ -470,3 +470,27 @@ DEF_TEST(RoundRectInPath, reporter) { test_skbug_3239(reporter); test_mix(reporter); } + +DEF_TEST(RRect_fragile, reporter) { + SkRect rect = { + SkBits2Float(0x1f800000), // 0x003F0000 was the starter value that also fails + SkBits2Float(0x1400001C), + SkBits2Float(0x3F000004), + SkBits2Float(0x3F000004), + }; + + SkPoint radii[] = { + { SkBits2Float(0x00000001), SkBits2Float(0x00000001) }, + { SkBits2Float(0x00000020), SkBits2Float(0x00000001) }, + { SkBits2Float(0x00000000), SkBits2Float(0x00000000) }, + { SkBits2Float(0x3F000004), SkBits2Float(0x3F000004) }, + }; + + SkRRect rr; + // please don't assert + if (false) { // disable until we fix this + SkDebugf("%g 0x%08X\n", rect.fLeft, SkFloat2Bits(rect.fLeft)); + rr.setRectRadii(rect, radii); + } +} + |