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

Unified Diff: src/core/SkPath.cpp

Issue 694503003: Implement conics for NVPR (Closed) Base URL: https://skia.googlesource.com/skia.git@hairline-test-fix-unskip-nvpr
Patch Set: cleanup Created 6 years, 1 month 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: src/core/SkPath.cpp
diff --git a/src/core/SkPath.cpp b/src/core/SkPath.cpp
index 5288b85db37e3ed4e6d5e68532975032ef7374d5..a0abe166f56fc66190d518c5108592650f23ad82 100644
--- a/src/core/SkPath.cpp
+++ b/src/core/SkPath.cpp
@@ -644,6 +644,17 @@ void SkPath::setLastPt(SkScalar x, SkScalar y) {
}
}
+int SkPath::countConicWeights() const {
+ return fPathRef->countWeights();
+}
+
+SkScalar SkPath::getConicWeight(int index) const {
+ if ((unsigned)index < (unsigned)fPathRef->countWeights()) {
+ return fPathRef->atConicWeight(index);
+ }
+ return SkIntToScalar(0);
+}
+
void SkPath::setConvexity(Convexity c) {
if (fConvexity != c) {
fConvexity = c;
« include/core/SkPath.h ('K') | « include/core/SkPathRef.h ('k') | src/gpu/gl/GrGLDefines.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698