diff options
author | reed <reed@google.com> | 2015-02-06 14:18:46 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-02-06 14:18:46 -0800 |
commit | 38f1c00772539dcbeccbfa3c45d94bdc4acf3518 (patch) | |
tree | 854eec9bfa4e013c5a028ef691225f406eed4c86 /src/core/SkLineClipper.h | |
parent | 37a473697136a57138bf069121ebdcc8652f10d4 (diff) |
faster edge re-sort, drop trailing edges
1. drop edges that are wholly on the right (in the non-convex walker)
2. scan and swap once, instead of swapping as we go during re-sort
BUG=skia:
Review URL: https://codereview.chromium.org/891613003
Diffstat (limited to 'src/core/SkLineClipper.h')
-rw-r--r-- | src/core/SkLineClipper.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/SkLineClipper.h b/src/core/SkLineClipper.h index 8026890b8d..d966dbc74c 100644 --- a/src/core/SkLineClipper.h +++ b/src/core/SkLineClipper.h @@ -30,7 +30,7 @@ public: 3rd segment: lines[2]..lines[3] */ static int ClipLine(const SkPoint pts[2], const SkRect& clip, - SkPoint lines[kMaxPoints]); + SkPoint lines[kMaxPoints], bool canClipToTheRight); /* Intersect the line segment against the rect. If there is a non-empty resulting segment, return true and set dst[] to that segment. If not, |