commit | 07db86126a5bc30d4eaf00e69890e89d4add4370 | [log] [tgz] |
---|---|---|
author | reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Tue Feb 28 15:32:42 2012 +0000 |
committer | reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Tue Feb 28 15:32:42 2012 +0000 |
tree | 1725f146f43f1aae6ba908db20e69c55ed32a847 | |
parent | 5e5a095a94281167056da707b03930f135748d71 [diff] |
since SkScalarCeil/Floor do not explicitly detect overflows from float->int, create special version of roundOut that checks if the result can fit, and if not we abort the draw. 32bits (or 30 for antialiasing) should be enough for anyone... git-svn-id: http://skia.googlecode.com/svn/trunk@3271 2bbb7eff-a529-9590-31e7-b0007b416f81