aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkEdge.cpp
diff options
context:
space:
mode:
authorGravatar reed <reed@chromium.org>2015-03-19 09:49:09 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-03-19 09:49:09 -0700
commite053ca4380713a5b9e6a31119a1bdd6d529208aa (patch)
treee54e3baa6fd41fdffb56438124b8ba6b5bdfa03a /src/core/SkEdge.cpp
parent3ef71e343bf075888fb50892350390b4dd47de24 (diff)
remove unused clip parameter to SkEdge::setClip
Diffstat (limited to 'src/core/SkEdge.cpp')
-rw-r--r--src/core/SkEdge.cpp17
1 files changed, 1 insertions, 16 deletions
diff --git a/src/core/SkEdge.cpp b/src/core/SkEdge.cpp
index 11d954e63f..f91f5f8782 100644
--- a/src/core/SkEdge.cpp
+++ b/src/core/SkEdge.cpp
@@ -332,8 +332,7 @@ static SkFDot6 cubic_delta_from_line(SkFDot6 a, SkFDot6 b, SkFDot6 c, SkFDot6 d)
return SkMax32(SkAbs32(oneThird), SkAbs32(twoThird));
}
-int SkCubicEdge::setCubic(const SkPoint pts[4], const SkIRect* clip, int shift)
-{
+int SkCubicEdge::setCubic(const SkPoint pts[4], int shift) {
SkFDot6 x0, y0, x1, y1, x2, y2, x3, y3;
{
@@ -376,10 +375,6 @@ int SkCubicEdge::setCubic(const SkPoint pts[4], const SkIRect* clip, int shift)
if (top == bot)
return 0;
- // are we completely above or below the clip?
- if (clip && (top >= clip->fBottom || bot <= clip->fTop))
- return 0;
-
// compute number of steps needed (1 << shift)
{
// Can't use (center of curve - center of baseline), since center-of-curve
@@ -433,16 +428,6 @@ int SkCubicEdge::setCubic(const SkPoint pts[4], const SkIRect* clip, int shift)
fCLastX = SkFDot6ToFixed(x3);
fCLastY = SkFDot6ToFixed(y3);
- if (clip)
- {
- do {
- if (!this->updateCubic()) {
- return 0;
- }
- } while (!this->intersectsClip(*clip));
- this->chopLineWithClip(*clip);
- return 1;
- }
return this->updateCubic();
}