aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/pathops
diff options
context:
space:
mode:
authorGravatar scroggo <scroggo@google.com>2015-04-07 06:53:21 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-04-07 06:53:21 -0700
commit5965b73e54da7746e1dafa7c696a4ddf9bd0f271 (patch)
treeee3a33e4fe8bfd518155df92b3a95a7b65a4b61c /include/pathops
parentfde1c85696656e5ccaa938114751e3f6bab6a90f (diff)
Revert of Remove now-redundant SkPathOps enum. (patchset #1 id:1 of https://codereview.chromium.org/1051113005/)
Diffstat (limited to 'include/pathops')
-rw-r--r--include/pathops/SkPathOps.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/pathops/SkPathOps.h b/include/pathops/SkPathOps.h
index 047588b635..a729e6f124 100644
--- a/include/pathops/SkPathOps.h
+++ b/include/pathops/SkPathOps.h
@@ -15,6 +15,11 @@ class SkPath;
struct SkRect;
+// FIXME: remove this once the define in src/skia/SkUserConfig.h lands
+#ifndef SK_SUPPORT_LEGACY_PATHOP_ENUMS
+#define SK_SUPPORT_LEGACY_PATHOP_ENUMS
+#endif
+
// FIXME: move everything below into the SkPath class
/**
* The logical operations that can be performed when combining two paths.
@@ -25,6 +30,14 @@ enum SkPathOp {
kUnion_SkPathOp, //!< union (inclusive-or) the two paths
kXOR_SkPathOp, //!< exclusive-or the two paths
kReverseDifference_SkPathOp, //!< subtract the first path from the op path
+
+#ifdef SK_SUPPORT_LEGACY_PATHOP_ENUMS
+ kDifference_PathOp = 0, //!< subtract the op path from the first path
+ kIntersect_PathOp, //!< intersect the two paths
+ kUnion_PathOp, //!< union (inclusive-or) the two paths
+ kXOR_PathOp, //!< exclusive-or the two paths
+ kReverseDifference_PathOp, //!< subtract the first path from the op path
+#endif
};
/** Set this path to the result of applying the Op to this path and the