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

Unified Diff: dm/DM.cpp

Issue 2221103002: Analytic AntiAlias for Convex Shapes (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Simplify gm Created 4 years, 2 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 | « bench/nanobench.cpp ('k') | gm/aaa.cpp » ('j') | gm/aaa.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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()) {
« no previous file with comments | « bench/nanobench.cpp ('k') | gm/aaa.cpp » ('j') | gm/aaa.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698