diff options
author | 2011-04-18 19:59:38 +0000 | |
---|---|---|
committer | 2011-04-18 19:59:38 +0000 | |
commit | 13659f1f8d2e705c565203d45870b1afcd47cf98 (patch) | |
tree | 37bcae73b9ebb93f7d33fefc0ed30c858b3c4564 /include | |
parent | 8b484419e80762ccdecca9ac2c10c1c29368cf2f (diff) |
handle overflow
note: gradient caller doesn't so we can still draw wrong when the caller
converts its initial fx from float->fixed. Perhaps SkClampRange should offer
a float interface as well.
git-svn-id: http://skia.googlecode.com/svn/trunk@1149 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include')
-rw-r--r-- | include/core/SkClampRange.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/core/SkClampRange.h b/include/core/SkClampRange.h index 999faa0ae9..9acf1ad5c5 100644 --- a/include/core/SkClampRange.h +++ b/include/core/SkClampRange.h @@ -37,6 +37,9 @@ struct SkClampRange { bool fOverflowed; // true if we had to clamp due to numerical overflow void init(SkFixed fx, SkFixed dx, int count, int v0, int v1); + +private: + void initFor1(SkFixed fx); }; #endif |