Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(155)

Unified Diff: src/core/SkScan_AntiPath.cpp

Issue 943053004: Remove SK_USE_LEGACY_AA_COVERAGE guarded code. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/core/SkScan_Path.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkScan_AntiPath.cpp
diff --git a/src/core/SkScan_AntiPath.cpp b/src/core/SkScan_AntiPath.cpp
index 4329ef5273a588218fc6b03d02d51645afe9cac2..ed11f6469a496daf9119814b16a8d8b27a2f66d6 100644
--- a/src/core/SkScan_AntiPath.cpp
+++ b/src/core/SkScan_AntiPath.cpp
@@ -29,15 +29,10 @@
- destination coordinates, scale equal to the output - often
abbreviated with 'i' or 'I' in variable names
- supersampled coordinates, scale equal to the output * SCALE
-
- 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_LEGACY_AA_COVERAGE
///////////////////////////////////////////////////////////////////////////////
@@ -190,9 +185,6 @@ void SuperBlitter::flush() {
*/
static inline int coverage_to_partial_alpha(int aa) {
aa <<= 8 - 2*SHIFT;
-#ifdef SK_USE_LEGACY_AA_COVERAGE
- aa -= aa >> (8 - SHIFT - 1);
-#endif
return aa;
}
« no previous file with comments | « no previous file | src/core/SkScan_Path.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698