reed | 73603f3 | 2016-09-20 08:42:38 -0700 | [diff] [blame] | 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 | |
| 8 | #ifndef SkClipOp_DEFINED |
| 9 | #define SkClipOp_DEFINED |
| 10 | |
| 11 | #include "SkTypes.h" |
| 12 | |
Mike Reed | ebfce6d | 2016-12-12 10:02:12 -0500 | [diff] [blame] | 13 | enum class SkClipOp { |
| 14 | kDifference = 0, |
| 15 | kIntersect = 1, |
| 16 | |
Mike Reed | 14113bc | 2017-05-10 14:13:20 -0400 | [diff] [blame] | 17 | #ifdef SK_SUPPORT_DEPRECATED_CLIPOPS |
Mike Reed | 3711e11 | 2016-12-20 08:17:36 -0500 | [diff] [blame] | 18 | kUnion_deprecated = 2, |
| 19 | kXOR_deprecated = 3, |
| 20 | kReverseDifference_deprecated = 4, |
| 21 | kReplace_deprecated = 5, |
Mike Reed | 14113bc | 2017-05-10 14:13:20 -0400 | [diff] [blame] | 22 | #else |
| 23 | kExtraEnumNeedInternallyPleaseIgnoreWillGoAway2 = 2, |
| 24 | kExtraEnumNeedInternallyPleaseIgnoreWillGoAway3 = 3, |
| 25 | kExtraEnumNeedInternallyPleaseIgnoreWillGoAway4 = 4, |
| 26 | kExtraEnumNeedInternallyPleaseIgnoreWillGoAway5 = 5, |
| 27 | #endif |
Mike Reed | 689169d | 2016-12-12 15:02:31 -0500 | [diff] [blame] | 28 | |
Mike Reed | 14113bc | 2017-05-10 14:13:20 -0400 | [diff] [blame] | 29 | // Used internally for validation, can only shrink to 1 when the deprecated flag is gone |
| 30 | kMax_EnumValue = 5, |
Mike Reed | ebfce6d | 2016-12-12 10:02:12 -0500 | [diff] [blame] | 31 | }; |
| 32 | |
| 33 | #endif |