tie slow sort (STD) to legacy AA, so that skia can use the fast one, and so that
authorreed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Fri, 3 Aug 2012 20:06:12 +0000 (20:06 +0000)
committerreed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Fri, 3 Aug 2012 20:06:12 +0000 (20:06 +0000)
when chrome disables the legacy flag, it will automatically get the faster one.

git-svn-id: http://skia.googlecode.com/svn/trunk@4955 2bbb7eff-a529-9590-31e7-b0007b416f81

src/core/SkScan_Path.cpp

index a04a2f3..bf747b7 100644 (file)
@@ -17,8 +17,9 @@
 #include "SkTemplates.h"
 #include "SkTSort.h"
 
-// undefine this to get faster inline sort
-#define SK_USE_STD_SORT_FOR_EDGES
+#ifdef SK_USE_LEGACY_AA_COVERAGE
+    #define SK_USE_STD_SORT_FOR_EDGES
+#endif
 
 #define kEDGE_HEAD_Y    SK_MinS32
 #define kEDGE_TAIL_Y    SK_MaxS32