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