Index: dm/DM.cpp |
diff --git a/dm/DM.cpp b/dm/DM.cpp |
index 5dd8a6f63e96a28387e78ebbd445006ec0dabce3..469c1630ec7a54f01e2090c266929a470e7040fe 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; |
@@ -1288,6 +1291,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()) { |