Merge "Force clipping on layers that fail to be allocated" into jb-mr2-dev

This commit is contained in:
Chris Craik
2013-04-26 02:15:45 +00:00
committed by Android (Google) Code Review

View File

@@ -13787,7 +13787,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
}
if ((flags & ViewGroup.FLAG_CLIP_CHILDREN) == ViewGroup.FLAG_CLIP_CHILDREN &&
!useDisplayListProperties && layerType == LAYER_TYPE_NONE) {
!useDisplayListProperties && cache == null) {
if (offsetForScroll) {
canvas.clipRect(sx, sy, sx + (mRight - mLeft), sy + (mBottom - mTop));
} else {