SkClipOp.h 860 B

123456789101112131415161718192021222324252627282930313233
  1. /*
  2. * Copyright 2016 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. #ifndef SkClipOp_DEFINED
  8. #define SkClipOp_DEFINED
  9. #include "SkTypes.h"
  10. enum class SkClipOp {
  11. kDifference = 0,
  12. kIntersect = 1,
  13. #ifdef SK_SUPPORT_DEPRECATED_CLIPOPS
  14. kUnion_deprecated = 2,
  15. kXOR_deprecated = 3,
  16. kReverseDifference_deprecated = 4,
  17. kReplace_deprecated = 5,
  18. #else
  19. kExtraEnumNeedInternallyPleaseIgnoreWillGoAway2 = 2,
  20. kExtraEnumNeedInternallyPleaseIgnoreWillGoAway3 = 3,
  21. kExtraEnumNeedInternallyPleaseIgnoreWillGoAway4 = 4,
  22. kExtraEnumNeedInternallyPleaseIgnoreWillGoAway5 = 5,
  23. #endif
  24. // Used internally for validation, can only shrink to 1 when the deprecated flag is gone
  25. kMax_EnumValue = 5,
  26. };
  27. #endif