diff options
| author | 2013-09-18 01:50:02 +0000 | |
|---|---|---|
| committer | 2013-09-18 01:50:02 +0000 | |
| commit | ce9ee16d654a42f31d211c60708d7b23f17c1d8e (patch) | |
| tree | 4044921a68cc010ac40c343ddd8692c71d209e1b /libs/hwui/OpenGLRenderer.cpp | |
| parent | a42ceb03cf6a1cbcd9f526afb02d806b2c200ee3 (diff) | |
| parent | 32f05e343c5ffb17f3235942bcda651bd3b9f1d6 (diff) | |
Merge "Conservatively estimate geometry bounds" into klp-dev
Diffstat (limited to 'libs/hwui/OpenGLRenderer.cpp')
| -rw-r--r-- | libs/hwui/OpenGLRenderer.cpp | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/libs/hwui/OpenGLRenderer.cpp b/libs/hwui/OpenGLRenderer.cpp index 2066f697dca8..89a82fdc4a84 100644 --- a/libs/hwui/OpenGLRenderer.cpp +++ b/libs/hwui/OpenGLRenderer.cpp @@ -1628,14 +1628,7 @@ bool OpenGLRenderer::quickRejectNoScissor(float left, float top, float right, fl Rect r(left, top, right, bottom); currentTransform().mapRect(r); - - if (snapOut) { - // snapOut is generally used to account for 1 pixel ramp (in window coordinates) - // outside of the provided rect boundaries in tessellated AA geometry - r.snapOutToPixelBoundaries(); - } else { - r.snapToPixelBoundaries(); - } + r.snapGeometryToPixelBoundaries(snapOut); Rect clipRect(*mSnapshot->clipRect); clipRect.snapToPixelBoundaries(); |