aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/pathops
diff options
context:
space:
mode:
authorGravatar caryclark@google.com <caryclark@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-04-22 14:37:05 +0000
committerGravatar caryclark@google.com <caryclark@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-04-22 14:37:05 +0000
commit7dfbb0720a133c0f63ac7be504f335bbcc62a291 (patch)
tree819a38446c52c07f941e2bf09ec236823f1032f3 /include/pathops
parentc4c9870953037be94da00ac9db887d171f6e479c (diff)
path ops : add support for inverse fill
add inverse fill, reverse diff, and gm tests cleaned up some interfaces Review URL: https://codereview.chromium.org/14371011 git-svn-id: http://skia.googlecode.com/svn/trunk@8798 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include/pathops')
-rw-r--r--include/pathops/SkPathOps.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/include/pathops/SkPathOps.h b/include/pathops/SkPathOps.h
index 0ad6ef2e1c..285118673f 100644
--- a/include/pathops/SkPathOps.h
+++ b/include/pathops/SkPathOps.h
@@ -9,18 +9,18 @@
class SkPath;
-// FIXME: move this into SkPaths.h or just use the equivalent in SkRegion.h
+// FIXME: move everything below into the SkPath class
+/**
+ * The logical operations that can be performed when combining two paths.
+ */
enum SkPathOp {
- kDifference_PathOp, //!< 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
- /** subtract the first path from the op path */
- kReverseDifference_PathOp, // FIXME: unsupported
- kReplace_PathOp //!< replace the dst path with the op FIXME: unsupported: should it be?
+ kDifference_PathOp, //!< 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
};
-// FIXME: these functions become members of SkPath
/**
* Set this path to the result of applying the Op to this path and the
* specified path: this = (this op operand). The resulting path will be constructed