Chromium Code Reviews| Index: src/core/SkClipStack.cpp | 
| diff --git a/src/core/SkClipStack.cpp b/src/core/SkClipStack.cpp | 
| index 2d8c94f0f713197667d1ae78a3095db86560904f..e0c3db01ba0742439d8521bddad303957a557bee 100644 | 
| --- a/src/core/SkClipStack.cpp | 
| +++ b/src/core/SkClipStack.cpp | 
| @@ -420,12 +420,6 @@ void SkClipStack::Element::updateBoundAndGenID(const Element* prior) { | 
| } | 
| if (!fDoAA) { | 
| 
 
robertphillips
2015/02/10 14:54:07
Just FYI - if we replace the 0.45f oddness with an
 
bsalomon
2015/02/10 15:57:24
eek, do we know why that happens?
 
 | 
| - // Here we mimic a non-anti-aliased scanline system. If there is | 
| - // no anti-aliasing we can integerize the bounding box to exclude | 
| - // fractional parts that won't be rendered. | 
| - // Note: the left edge is handled slightly differently below. We | 
| - // are a bit more generous in the rounding since we don't want to | 
| - // risk missing the left pixels when fLeft is very close to .5 | 
| fFiniteBound.set(SkScalarFloorToScalar(fFiniteBound.fLeft+0.45f), | 
| SkScalarRoundToScalar(fFiniteBound.fTop), | 
| SkScalarRoundToScalar(fFiniteBound.fRight), | 
| @@ -622,25 +616,6 @@ void SkClipStack::getBounds(SkRect* canvFiniteBound, | 
| } | 
| } | 
| -bool SkClipStack::intersectRectWithClip(SkRect* rect) const { | 
| - SkASSERT(rect); | 
| - | 
| - SkRect bounds; | 
| - SkClipStack::BoundsType bt; | 
| - this->getBounds(&bounds, &bt); | 
| - if (bt == SkClipStack::kInsideOut_BoundsType) { | 
| - if (bounds.contains(*rect)) { | 
| - return false; | 
| - } else { | 
| - // If rect's x values are both within bound's x range we | 
| - // could clip here. Same for y. But we don't bother to check. | 
| - return true; | 
| - } | 
| - } else { | 
| - return rect->intersect(bounds); | 
| - } | 
| -} | 
| - | 
| bool SkClipStack::quickContains(const SkRect& rect) const { | 
| Iter iter(*this, Iter::kTop_IterStart); |