aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorGravatar reed@android.com <reed@android.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2009-03-02 05:36:20 +0000
committerGravatar reed@android.com <reed@android.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2009-03-02 05:36:20 +0000
commit3abec1d7c38e9bd786fc6057f9608f3eeec98c86 (patch)
treecd78249fa6641d26203307aae74ef532907950cd /include
parenta396a16d53c1355c59f9f1f739618b47dc346ee4 (diff)
add initial unittests for Path
add operator== for paths still need to implement isRect! git-svn-id: http://skia.googlecode.com/svn/trunk@99 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include')
-rw-r--r--include/core/SkPath.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/core/SkPath.h b/include/core/SkPath.h
index e2409ad6ba..4cedcde453 100644
--- a/include/core/SkPath.h
+++ b/include/core/SkPath.h
@@ -37,6 +37,11 @@ public:
~SkPath();
SkPath& operator=(const SkPath&);
+
+ friend bool operator==(const SkPath&, const SkPath&);
+ friend bool operator!=(const SkPath& a, const SkPath& b) {
+ return !(a == b);
+ }
enum FillType {
/** Specifies that "inside" is computed by a non-zero sum of signed
@@ -538,7 +543,6 @@ public:
#ifdef SK_DEBUG
/** @cond UNIT_TEST */
void dump(bool forceClose, const char title[] = NULL) const;
- static void UnitTest();
/** @endcond */
#endif