2019-03-25 15:54:59 +00:00
|
|
|
// Copyright 2019 Google LLC.
|
|
|
|
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
|
|
|
|
|
2019-04-23 17:05:21 +00:00
|
|
|
#include "src/core/SkScan.h"
|
|
|
|
#include "tools/flags/CommonFlags.h"
|
2019-03-25 15:54:59 +00:00
|
|
|
|
|
|
|
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;
|
|
|
|
}
|