Index: src/core/SkEdgeBuilder.cpp |
diff --git a/src/core/SkEdgeBuilder.cpp b/src/core/SkEdgeBuilder.cpp |
index 00811203b4edd24ccbf39b19113d912a43c79c53..8dcc47a6ce2ccf87a0ce34e5e969817e76c68dad 100644 |
--- a/src/core/SkEdgeBuilder.cpp |
+++ b/src/core/SkEdgeBuilder.cpp |
@@ -79,8 +79,8 @@ |
SkIntToScalar(src.fBottom >> shift)); |
} |
-int SkEdgeBuilder::buildPoly(const SkPath& path, const SkIRect* iclip, int shiftUp, |
- bool clipToTheRight) { |
+int SkEdgeBuilder::buildPoly(const SkPath& path, const SkIRect* iclip, |
+ int shiftUp) { |
SkPath::Iter iter(path, true); |
SkPoint pts[4]; |
SkPath::Verb verb; |
@@ -115,7 +115,7 @@ |
break; |
case SkPath::kLine_Verb: { |
SkPoint lines[SkLineClipper::kMaxPoints]; |
- int lineCount = SkLineClipper::ClipLine(pts, clip, lines, clipToTheRight); |
+ int lineCount = SkLineClipper::ClipLine(pts, clip, lines); |
SkASSERT(lineCount <= SkLineClipper::kMaxClippedLineSegments); |
for (int i = 0; i < lineCount; i++) { |
if (edge->setLine(lines[i], lines[i + 1], shiftUp)) { |
@@ -161,14 +161,14 @@ |
} |
} |
-int SkEdgeBuilder::build(const SkPath& path, const SkIRect* iclip, int shiftUp, |
- bool clipToTheRight) { |
+int SkEdgeBuilder::build(const SkPath& path, const SkIRect* iclip, |
+ int shiftUp) { |
fAlloc.reset(); |
fList.reset(); |
fShiftUp = shiftUp; |
if (SkPath::kLine_SegmentMask == path.getSegmentMasks()) { |
- return this->buildPoly(path, iclip, shiftUp, clipToTheRight); |
+ return this->buildPoly(path, iclip, shiftUp); |
} |
SkAutoConicToQuads quadder; |
@@ -192,7 +192,7 @@ |
break; |
case SkPath::kLine_Verb: { |
SkPoint lines[SkLineClipper::kMaxPoints]; |
- int lineCount = SkLineClipper::ClipLine(pts, clip, lines, clipToTheRight); |
+ int lineCount = SkLineClipper::ClipLine(pts, clip, lines); |
for (int i = 0; i < lineCount; i++) { |
this->addLine(&lines[i]); |
} |