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

Unified Diff: src/pathops/SkOpEdgeBuilder.cpp

Issue 837023002: fixes for conics (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 11 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
« no previous file with comments | « src/core/SkEdgeBuilder.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/pathops/SkOpEdgeBuilder.cpp
diff --git a/src/pathops/SkOpEdgeBuilder.cpp b/src/pathops/SkOpEdgeBuilder.cpp
index 8503af301d5d2f4ff60aec8e94bd3f1ea566a16e..803a5f4739e238a5426cc7c4fec513cca1faf879 100644
--- a/src/pathops/SkOpEdgeBuilder.cpp
+++ b/src/pathops/SkOpEdgeBuilder.cpp
@@ -111,8 +111,8 @@ int SkOpEdgeBuilder::preFetch() {
for (int i = 0; i < nQuads; ++i) {
fPathVerbs.push_back(SkPath::kQuad_Verb);
}
- fPathPts.push_back_n(nQuads * 2, quadPts);
- curve[0] = quadPts[nQuads * 2 - 1];
+ fPathPts.push_back_n(nQuads * 2, &quadPts[1]);
+ curve[0] = pts[2];
lastCurve = true;
}
continue;
« no previous file with comments | « src/core/SkEdgeBuilder.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698