1 // Copyright 2019 Google LLC.
2 // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
4 #include "src/core/SkScan.h"
5 #include "tools/flags/CommonFlags.h"
7 namespace CommonFlags {
9 static DEFINE_bool(analyticAA, true, "If false, disable analytic anti-aliasing");
10 static DEFINE_bool(forceAnalyticAA, false,
11 "Force analytic anti-aliasing even if the path is complicated: "
12 "whether it's concave or convex, we consider a path complicated"
13 "if its number of points is comparable to its resolution.");
15 void SetAnalyticAA() {
16 gSkUseAnalyticAA = FLAGS_analyticAA;
17 gSkForceAnalyticAA = FLAGS_forceAnalyticAA;