summaryrefslogtreecommitdiffstats
path: root/libs
diff options
context:
space:
mode:
authorDohyun Lee <dohyun.lee@lge.com>2014-11-24 21:08:15 +0900
committerChris Craik <ccraik@google.com>2014-11-26 10:51:32 -0800
commit52b2cf9fdf95ccdcbb3f5e403eb9691c1ead1214 (patch)
tree48c2a12a644d15b458030915541a6adfac0539ff /libs
parent6c912b7d056c67b41fd46f31de168795e97c2336 (diff)
downloadframeworks_base-52b2cf9fdf95ccdcbb3f5e403eb9691c1ead1214.zip
frameworks_base-52b2cf9fdf95ccdcbb3f5e403eb9691c1ead1214.tar.gz
frameworks_base-52b2cf9fdf95ccdcbb3f5e403eb9691c1ead1214.tar.bz2
Enable stencil clipping within clearLayerRegions
bug:18538502 Cherry-pick of adc0d9da8648abfea1035fb1108eceea9fd9b5b1 from AOSP Previously stencil clipping within clearLayerRegions is disabled by commit 62d307c2402777d5e53b4590af5f32f8c55afd81. However, clearing whole layer regions causes black-colored triangle regions when a TextView has RotateAnimation because the draw within clearLayerRegions does not affected by the current stencil clip. Change-Id: Id32a0b16754b109905f833e063ebfa156bd953f2 Signed-off-by: Dohyun Lee <dohyun.lee@lge.com>
Diffstat (limited to 'libs')
-rwxr-xr-xlibs/hwui/OpenGLRenderer.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/libs/hwui/OpenGLRenderer.cpp b/libs/hwui/OpenGLRenderer.cpp
index d570b0d..38880cd 100755
--- a/libs/hwui/OpenGLRenderer.cpp
+++ b/libs/hwui/OpenGLRenderer.cpp
@@ -1586,13 +1586,7 @@ void OpenGLRenderer::setupDraw(bool clearLayer) {
setScissorFromClip();
}
- if (clearLayer) {
- setStencilFromClip();
- } else {
- // While clearing layer, force disable stencil buffer, since
- // it's invalid to stencil-clip *during* the layer clear
- mCaches.stencil.disable();
- }
+ setStencilFromClip();
}
mDescription.reset();