blob: e2df08a6fc995fd861c0d84f79a09e03d942e580 [file] [log] [blame]
// Copyright 2019 Google LLC.
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
#include "src/core/SkScan.h"
#include "tools/flags/CommonFlags.h"
static DEFINE_bool(analyticAA, true, "If false, disable analytic anti-aliasing");
static DEFINE_bool(forceAnalyticAA, false,
"Force analytic anti-aliasing even if the path is complicated: "
"whether it's concave or convex, we consider a path complicated"
"if its number of points is comparable to its resolution.");
void SetAnalyticAAFromCommonFlags() {
gSkUseAnalyticAA = FLAGS_analyticAA;
gSkForceAnalyticAA = FLAGS_forceAnalyticAA;
}