aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/core/SkColorPriv.h
diff options
context:
space:
mode:
authorGravatar reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-06-30 21:17:22 +0000
committerGravatar reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-06-30 21:17:22 +0000
commit5d2fef0d83f59fc982d78c91c8757d6016bd99c4 (patch)
tree07fa83fdaa4279f9a23a0e40f3c0231263c2c869 /include/core/SkColorPriv.h
parent0b8b3bb08330dd341acbd52c16e55455325e465a (diff)
fix asserts in new premul inline function
git-svn-id: http://skia.googlecode.com/svn/trunk@1773 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include/core/SkColorPriv.h')
-rw-r--r--include/core/SkColorPriv.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/core/SkColorPriv.h b/include/core/SkColorPriv.h
index bd680f3fa8..6a6944cff5 100644
--- a/include/core/SkColorPriv.h
+++ b/include/core/SkColorPriv.h
@@ -219,9 +219,9 @@ static inline SkPMColor SkPackARGB32NoCheck(U8CPU a, U8CPU r, U8CPU g, U8CPU b)
static inline
SkPMColor SkPremultiplyARGBInline(U8CPU a, U8CPU r, U8CPU g, U8CPU b) {
SkA32Assert(a);
- SkASSERT(r <= a);
- SkASSERT(g <= a);
- SkASSERT(b <= a);
+ SkA32Assert(r);
+ SkA32Assert(g);
+ SkA32Assert(b);
if (a != 255) {
r = SkMulDiv255Round(r, a);