diff options
author | Robert Phillips <robertphillips@google.com> | 2017-08-03 15:28:58 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-08-04 14:14:13 +0000 |
commit | 121ad19a7ecefa6fc814cfc24d2625df2178b61c (patch) | |
tree | 468b319d2af48ee803b8e438a93f8cf11a06c11f /src | |
parent | f60e1627edd22f05ab6ba1aab6cc390fa4393a41 (diff) |
Update SkClipStack's bound computation
I believe this was originally added to make Raster & GPU rendering more similar. I think we've moved on from there.
Change-Id: Ic980f3308fbd427e5857b720488c91383a32a149
Reviewed-on: https://skia-review.googlesource.com/30761
Reviewed-by: Stan Iliev <stani@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/core/SkClipStack.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/SkClipStack.cpp b/src/core/SkClipStack.cpp index d4a9867f65..22d3809ad1 100644 --- a/src/core/SkClipStack.cpp +++ b/src/core/SkClipStack.cpp @@ -407,7 +407,7 @@ void SkClipStack::Element::updateBoundAndGenID(const Element* prior) { } if (!fDoAA) { - fFiniteBound.set(SkScalarFloorToScalar(fFiniteBound.fLeft+0.45f), + fFiniteBound.set(SkScalarRoundToScalar(fFiniteBound.fLeft), SkScalarRoundToScalar(fFiniteBound.fTop), SkScalarRoundToScalar(fFiniteBound.fRight), SkScalarRoundToScalar(fFiniteBound.fBottom)); |