Index: src/core/SkPath.cpp |
diff --git a/src/core/SkPath.cpp b/src/core/SkPath.cpp |
index 45429a6e1253bd9f5b93481b9a3e5d48af2508ee..aa99ce4f0e1da80840eededc3cfb82bc9c97a00d 100644 |
--- a/src/core/SkPath.cpp |
+++ b/src/core/SkPath.cpp |
@@ -631,6 +631,18 @@ bool SkPath::getLastPt(SkPoint* lastPt) const { |
return false; |
} |
+void SkPath::setPt(int index, SkScalar x, SkScalar y) { |
+ SkDEBUGCODE(this->validate();) |
+ |
+ int count = fPathRef->countPoints(); |
+ if (count <= index) { |
+ return; |
+ } else { |
+ SkPathRef::Editor ed(&fPathRef); |
+ ed.atPoint(index)->set(x, y); |
+ } |
+} |
+ |
void SkPath::setLastPt(SkScalar x, SkScalar y) { |
SkDEBUGCODE(this->validate();) |