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/SkLineClipper.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/SkLineClipper.cpp')
-rw-r--r-- | src/core/SkLineClipper.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/core/SkLineClipper.cpp b/src/core/SkLineClipper.cpp index 9d72ea513a..1645917d70 100644 --- a/src/core/SkLineClipper.cpp +++ b/src/core/SkLineClipper.cpp @@ -173,7 +173,7 @@ static void sect_with_horizontal_test_for_pin_results() { #endif int SkLineClipper::ClipLine(const SkPoint pts[], const SkRect& clip, - SkPoint lines[], bool canClipToTheRight) { + SkPoint lines[]) { #ifdef SK_DEBUG { static bool gOnce; @@ -241,9 +241,6 @@ int SkLineClipper::ClipLine(const SkPoint pts[], const SkRect& clip, result = tmp; reverse = false; } else if (tmp[index0].fX >= clip.fRight) { // wholly to the right - if (canClipToTheRight) { - return 0; - } tmp[0].fX = tmp[1].fX = clip.fRight; result = tmp; reverse = false; |