aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools
diff options
context:
space:
mode:
authorGravatar Yuqian Li <liyuqian@google.com>2017-07-29 13:41:52 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-07-29 18:14:50 +0000
commit93fe0ccd240c5af89458867e892364c3020fca89 (patch)
tree50a59fd6324e4b9dc880006767be3a5535d138c5 /tools
parent5f9b59b52db2b9a11d41bb7fa93ec5e5d6104236 (diff)
Enable delta AA by default
The earlier CL doesn't change the flag definition so it's not turned on yet. Bug: skia: Change-Id: Id278ae5fc27d703ab7f6628bed95093d32cd7d0b TBR: caryclark@google.com, fmalita@chromium.org Reviewed-on: https://skia-review.googlesource.com/28161 Commit-Queue: Yuqian Li <liyuqian@google.com> Reviewed-by: Yuqian Li <liyuqian@google.com>
Diffstat (limited to 'tools')
-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.");