sksl_enums.inc 992 B

1234567891011121314151617181920212223242526272829303132333435
  1. R"(/*
  2. * Copyright 2017 Google Inc.
  3. *
  4. * Use of this source code is governed by a BSD-style license that can be
  5. * found in the LICENSE file.
  6. */
  7. /*************************************************************************************************/
  8. /* This file is used from both C++ and SkSL, so we need to stick to syntax compatible with both. */
  9. /*************************************************************************************************/
  10. /**
  11. * We have coverage effects that clip rendering to the edge of some geometric primitive.
  12. * This enum specifies how that clipping is performed. Not all factories that take a
  13. * GrProcessorEdgeType will succeed with all values and it is up to the caller to check for
  14. * a NULL return.
  15. */
  16. enum class GrClipEdgeType {
  17. kFillBW,
  18. kFillAA,
  19. kInverseFillBW,
  20. kInverseFillAA,
  21. kHairlineAA,
  22. kLast = kHairlineAA
  23. };
  24. enum class PMConversion {
  25. kToPremul = 0,
  26. kToUnpremul = 1,
  27. kPMConversionCnt = 2
  28. };
  29. )"