c6142d855c
Turns out lots of tools had two copies of many of these flags. Some GN and .cpp file refactoring to make sure when flags are present in a binary, they do something in that binary. I think this finally finishes the flag refrag. Change-Id: I01488e37ab73a5c4361786863ddb137a7f1095b1 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/203420 Commit-Queue: Mike Klein <mtklein@google.com> Commit-Queue: Brian Osman <brianosman@google.com> Auto-Submit: Mike Klein <mtklein@google.com> Reviewed-by: Brian Osman <brianosman@google.com>
17 lines
662 B
C++
17 lines
662 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 "CommonFlags.h"
|
|
#include "SkScan.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;
|
|
}
|