aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/core
diff options
context:
space:
mode:
authorGravatar reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-10-11 11:58:32 +0000
committerGravatar reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-10-11 11:58:32 +0000
commit294dd7b3d7b55ba38881cd4cabb6636abda23eb9 (patch)
tree470ff13c1a59c491c004bc872fea8e30c0ca304c /include/core
parent5e2457ef2eba0c3f2e4c8fc89be7f36659e4f3b1 (diff)
change getLastPt to return a bool
git-svn-id: http://skia.googlecode.com/svn/trunk@2453 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include/core')
-rw-r--r--include/core/SkPath.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/core/SkPath.h b/include/core/SkPath.h
index c3bfd8e0cf..5982ea0e68 100644
--- a/include/core/SkPath.h
+++ b/include/core/SkPath.h
@@ -546,11 +546,12 @@ public:
}
/** Return the last point on the path. If no points have been added, (0,0)
- is returned.
+ is returned. If there are no points, this returns false, otherwise it
+ returns true.
@param lastPt The last point on the path is returned here
*/
- void getLastPt(SkPoint* lastPt) const;
+ bool getLastPt(SkPoint* lastPt) const;
/** Set the last point on the path. If no points have been added,
moveTo(x,y) is automatically called.