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 static DEFINE_bool(analyticAA, true, "If false, disable analytic anti-aliasing"); 8 static DEFINE_bool(forceAnalyticAA, false, 9 "Force analytic anti-aliasing even if the path is complicated: " 10 "whether it's concave or convex, we consider a path complicated" 11 "if its number of points is comparable to its resolution."); 12 SetAnalyticAAFromCommonFlags()13void SetAnalyticAAFromCommonFlags() { 14 gSkUseAnalyticAA = FLAGS_analyticAA; 15 gSkForceAnalyticAA = FLAGS_forceAnalyticAA; 16 } 17