diff options
author | reed <reed@chromium.org> | 2015-02-06 21:08:33 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-02-06 21:08:33 -0800 |
commit | 0692c5f2c1df7d1b66c62025200dd666f9ecd311 (patch) | |
tree | d19705f00b81f38bb5f47f14a3e3e411a5a1283c /src/core/SkEdgeBuilder.cpp | |
parent | 2322115952c15c72a623837879cac1f85894b1b6 (diff) |
Revert of Faster edge re-sort, drop trailing edges (patchset #2 id:20001 of https://codereview.chromium.org/907623002/)
Reason for revert:
still layout failures
Original issue's description:
> Faster edge re-sort, drop trailing edges
>
> (patchset #4 id:60001 of https://codereview.chromium.org/891613003/)"
>
> This reverts commit c319d075eab86cacfd7aba27859b72bbf8fc0a64.
>
> BUG=skia:
> TBR=
>
> Committed: https://skia.googlesource.com/skia/+/2322115952c15c72a623837879cac1f85894b1b6
TBR=
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=skia:
Review URL: https://codereview.chromium.org/886503010
Diffstat (limited to 'src/core/SkEdgeBuilder.cpp')
-rw-r--r-- | src/core/SkEdgeBuilder.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/core/SkEdgeBuilder.cpp b/src/core/SkEdgeBuilder.cpp index 00811203b4..8dcc47a6ce 100644 --- a/src/core/SkEdgeBuilder.cpp +++ b/src/core/SkEdgeBuilder.cpp @@ -79,8 +79,8 @@ static void setShiftedClip(SkRect* dst, const SkIRect& src, int shift) { 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 @@ int SkEdgeBuilder::buildPoly(const SkPath& path, const SkIRect* iclip, int shift 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 @@ static void handle_quad(SkEdgeBuilder* builder, const SkPoint pts[3]) { } } -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 @@ int SkEdgeBuilder::build(const SkPath& path, const SkIRect* iclip, int shiftUp, 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]); } |