diff options
author | senorblanco@chromium.org <senorblanco@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2009-11-20 04:25:41 +0000 |
---|---|---|
committer | senorblanco@chromium.org <senorblanco@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2009-11-20 04:25:41 +0000 |
commit | 9a62fa705280ed1a5ab2cc9a05208e9c72c1d5f9 (patch) | |
tree | 507cd7051da855caf43b058003d16c05830ae7b6 | |
parent | 3f0785e0c675c906c0bd704702e122149c5ee951 (diff) |
Remove SK_USE_OLD_255_TO_256.
Review URL: http://codereview.appspot.com/156057/show.
git-svn-id: http://skia.googlecode.com/svn/trunk@438 2bbb7eff-a529-9590-31e7-b0007b416f81
-rw-r--r-- | include/core/SkColorPriv.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/include/core/SkColorPriv.h b/include/core/SkColorPriv.h index 15b4d6a7ad..c50bb20d54 100644 --- a/include/core/SkColorPriv.h +++ b/include/core/SkColorPriv.h @@ -33,13 +33,9 @@ */ static inline unsigned SkAlpha255To256(U8CPU alpha) { SkASSERT(SkToU8(alpha) == alpha); -#ifndef SK_USE_OLD_255_TO_256 // this one assues that blending on top of an opaque dst keeps it that way // even though it is less accurate than a+(a>>7) for non-opaque dsts return alpha + 1; -#else - return alpha + (alpha >> 7); -#endif } /** Multiplify value by 0..256, and shift the result down 8 |