Index: dm/DM.cpp |
diff --git a/dm/DM.cpp b/dm/DM.cpp |
index bf80c863ba6b2238107dfef3d9d938bf75ea48af..fb512c788060081928be232eadd25623d138f438 100644 |
--- a/dm/DM.cpp |
+++ b/dm/DM.cpp |
@@ -34,6 +34,7 @@ |
#include "Timer.h" |
#include "picture_utils.h" |
#include "sk_tool_utils.h" |
+#include "SkScan.h" |
#ifdef SK_PDF_IMAGE_STATS |
extern void SkPDFImageDumpStats(); |
@@ -75,6 +76,8 @@ DEFINE_string(mskps, "", "Directory to read mskps from, or a single mskp file.") |
DEFINE_string(svgs, "", "Directory to read SVGs from, or a single SVG file."); |
+DEFINE_bool(analyticAA, false, "Analytic Anti-Alias"); |
+ |
using namespace DM; |
using sk_gpu_test::GrContextFactory; |
using sk_gpu_test::GLTestContext; |
@@ -1287,6 +1290,10 @@ int dm_main() { |
setbuf(stdout, nullptr); |
setup_crash_handler(); |
+ if (FLAGS_analyticAA) { |
+ GlobalAAConfig::getInstance().fUseAnalyticAA = true; |
+ } |
+ |
if (FLAGS_verbose) { |
gVLog = stderr; |
} else if (!FLAGS_writePath.isEmpty()) { |