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