aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorGravatar reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-04-18 19:59:38 +0000
committerGravatar reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-04-18 19:59:38 +0000
commit13659f1f8d2e705c565203d45870b1afcd47cf98 (patch)
tree37bcae73b9ebb93f7d33fefc0ed30c858b3c4564 /include
parent8b484419e80762ccdecca9ac2c10c1c29368cf2f (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.h3
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