8f4e560871
This consolidates tools/flags/CommonFlagsFontMgr.h into tools/flags/CommonFlags.h and adds all those common flags into the CommonFlags namespace. I also cleaned up a few unused includes in DM.cpp Change-Id: I1d1bf6598dfb87619b6abbb9faa1e24631f76fb4 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/459476 Reviewed-by: Ben Wagner <bungeman@google.com> Commit-Queue: Kevin Lubick <kjlubick@google.com>
21 lines
696 B
C++
21 lines
696 B
C++
// 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"
|
|
|
|
namespace CommonFlags {
|
|
|
|
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 SetAnalyticAA() {
|
|
gSkUseAnalyticAA = FLAGS_analyticAA;
|
|
gSkForceAnalyticAA = FLAGS_forceAnalyticAA;
|
|
}
|
|
|
|
}
|