aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-05-09 14:07:34 +0000
committerGravatar reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-05-09 14:07:34 +0000
commit5b7d603e179a38735056db5f9092d18c187e76a0 (patch)
tree5cf07748942b2ca97b77ef802cb0d075be091fb1 /src
parenta869248bf8fa8d3649b71440d43e7a510f87380b (diff)
invert sense of conditional EXACT_COVERAGE, renaming to LEGACY_AA_COVERAGE
git-svn-id: http://skia.googlecode.com/svn/trunk@3876 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src')
-rw-r--r--src/core/SkScan_AntiPath.cpp16
1 files changed, 7 insertions, 9 deletions
diff --git a/src/core/SkScan_AntiPath.cpp b/src/core/SkScan_AntiPath.cpp
index 2993dc7567..257a8f29fb 100644
--- a/src/core/SkScan_AntiPath.cpp
+++ b/src/core/SkScan_AntiPath.cpp
@@ -30,14 +30,14 @@
abbreviated with 'i' or 'I' in variable names
- supersampled coordinates, scale equal to the output * SCALE
- SK_USE_EXACT_COVERAGE makes coverage_to_partial_alpha() behave similarly to
- coverage_to_exact_alpha(). Enabling it will requrie rebaselining about 1/3
- of GMs for changes in the 3 least significant bits along the edges of
- antialiased spans.
+ Enabling SK_USE_LEGACY_AA_COVERAGE keeps the aa coverage calculations as
+ they were before the fix that unified the output of the RLE and MASK
+ supersamplers.
*/
+
//#define FORCE_SUPERMASK
//#define FORCE_RLE
-//#define SK_USE_EXACT_COVERAGE
+#define SK_USE_LEGACY_AA_COVERAGE
///////////////////////////////////////////////////////////////////////////////
@@ -160,13 +160,11 @@ void SuperBlitter::flush() {
coverage_to_exact_alpha().
*/
static inline int coverage_to_partial_alpha(int aa) {
-#ifdef SK_USE_EXACT_COVERAGE
- return aa << (8 - 2 * SHIFT);
-#else
aa <<= 8 - 2*SHIFT;
+#ifdef SK_USE_LEGACY_AA_COVERAGE
aa -= aa >> (8 - SHIFT - 1);
- return aa;
#endif
+ return aa;
}
/** coverage_to_exact_alpha() is being used by our blitter, which wants