aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/flags/SkCommonFlags.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/flags/SkCommonFlags.cpp')
-rw-r--r--tools/flags/SkCommonFlags.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/tools/flags/SkCommonFlags.cpp b/tools/flags/SkCommonFlags.cpp
index 19afd10909..4ea3a69e5a 100644
--- a/tools/flags/SkCommonFlags.cpp
+++ b/tools/flags/SkCommonFlags.cpp
@@ -72,7 +72,12 @@ DEFINE_bool(forceAnalyticAA, false, "Force analytic anti-aliasing even if the pa
"whether it's concave or convex, we consider a path complicated"
"if its number of points is comparable to its resolution.");
-DEFINE_bool(deltaAA, false,
+#ifdef SK_SUPPORT_LEGACY_DELTA_AA
+constexpr bool kDefaultDeltaAA = false;
+#else
+constexpr bool kDefaultDeltaAA = true;
+#endif
+DEFINE_bool(deltaAA, kDefaultDeltaAA,
"If true, use delta anti-aliasing in suitable cases (it overrides forceAnalyticAA.");
DEFINE_bool(forceDeltaAA, false, "Force delta anti-aliasing for all paths.");