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

Unified Diff: dm/DM.cpp

Issue 2221103002: Analytic AntiAlias for Convex Shapes (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Make alpha computation cleaner and faster Created 4 years, 4 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') | src/core/SkAntiRun.h » ('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 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()) {
« no previous file with comments | « bench/nanobench.cpp ('k') | gm/aaa.cpp » ('j') | src/core/SkAntiRun.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698