Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(393)

Unified Diff: include/pathops/SkPathOps.h

Issue 14371011: path ops : add support for inverse fill (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: include/pathops/SkPathOps.h
===================================================================
--- include/pathops/SkPathOps.h (revision 8745)
+++ include/pathops/SkPathOps.h (working copy)
@@ -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 {
bsalomon 2013/04/22 13:13:57 We have SkRegion::Op which is used in a bunch of p
- 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

Powered by Google App Engine
This is Rietveld 408576698