diff options
| author | 2013-09-17 18:53:14 -0700 | |
|---|---|---|
| committer | 2013-09-17 18:53:14 -0700 | |
| commit | d97303a73babf8f820a78f72d558be8e4ad09f47 (patch) | |
| tree | 74cd813f8328e38d1a2ca4961dbc93ed9d2a42f6 /libs/hwui/OpenGLRenderer.cpp | |
| parent | 7cb404dda770da24aaf1b484d6575d5480cf080f (diff) | |
| parent | ce9ee16d654a42f31d211c60708d7b23f17c1d8e (diff) | |
am ce9ee16d: Merge "Conservatively estimate geometry bounds" into klp-dev
* commit 'ce9ee16d654a42f31d211c60708d7b23f17c1d8e':
Conservatively estimate geometry bounds
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(); |