CommonFlagsAA.cpp 683 B

12345678910111213141516
  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. #include "src/core/SkScan.h"
  4. #include "tools/flags/CommonFlags.h"
  5. static DEFINE_bool(analyticAA, true, "If false, disable analytic anti-aliasing");
  6. static DEFINE_bool(forceAnalyticAA, false,
  7. "Force analytic anti-aliasing even if the path is complicated: "
  8. "whether it's concave or convex, we consider a path complicated"
  9. "if its number of points is comparable to its resolution.");
  10. void SetAnalyticAAFromCommonFlags() {
  11. gSkUseAnalyticAA = FLAGS_analyticAA;
  12. gSkForceAnalyticAA = FLAGS_forceAnalyticAA;
  13. }