diff options
author | reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-12-18 15:49:32 +0000 |
---|---|---|
committer | reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-12-18 15:49:32 +0000 |
commit | 8015cdd8fa5694e52b70e728bcdc6b35d739b819 (patch) | |
tree | 1e698fc094a2228a438e4a8e6c0ae21964c7aef5 /include/core/SkScalar.h | |
parent | 83aaf88b999306b2361ee01b0c6a7c345f2242a2 (diff) |
replace SkScalarMulRound(a,b) with SkScalarRountToInt(a*b)
BUG=
R=sugoi@google.com
Review URL: https://codereview.chromium.org/111393010
git-svn-id: http://skia.googlecode.com/svn/trunk@12740 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include/core/SkScalar.h')
-rw-r--r-- | include/core/SkScalar.h | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/include/core/SkScalar.h b/include/core/SkScalar.h index 10bfa7297c..70509e493c 100644 --- a/include/core/SkScalar.h +++ b/include/core/SkScalar.h @@ -108,15 +108,6 @@ inline SkScalar SkScalarSquare(SkScalar x) { return x * x; } /** Returns the product of two SkScalars plus a third SkScalar */ #define SkScalarMulAdd(a, b, c) ((float)(a) * (b) + (c)) -/** Returns the product of a SkScalar and an int rounded to the nearest integer value -*/ -#define SkScalarMulRound(a, b) SkScalarRoundToInt((float)(a) * (b)) -/** Returns the product of a SkScalar and an int promoted to the next larger int -*/ -#define SkScalarMulCeil(a, b) SkScalarCeilToInt((float)(a) * (b)) -/** Returns the product of a SkScalar and an int truncated to the next smaller int -*/ -#define SkScalarMulFloor(a, b) SkScalarFloorToInt((float)(a) * (b)) /** Returns the quotient of two SkScalars (a/b) */ #define SkScalarDiv(a, b) ((float)(a) / (b)) |