diff --git a/core/java/android/view/View.java b/core/java/android/view/View.java index 9e4bb4ca38e72..7937ba21a7c71 100644 --- a/core/java/android/view/View.java +++ b/core/java/android/view/View.java @@ -14041,11 +14041,6 @@ public class View implements Drawable.Callback, KeyEvent.Callback, receiver.damageInParent(); } } - - // Damage the entire IsolatedZVolume receiving this view's shadow. - if (isHardwareAccelerated() && getZ() != 0) { - damageShadowReceiver(); - } } } @@ -14072,23 +14067,6 @@ public class View implements Drawable.Callback, KeyEvent.Callback, return mBackground != null; } - /** - * Damage area of the screen that can be covered by this View's shadow. - * - * This method will guarantee that any changes to shadows cast by a View - * are damaged on the screen for future redraw. - */ - private void damageShadowReceiver() { - final AttachInfo ai = mAttachInfo; - if (ai != null) { - ViewParent p = getParent(); - if (p != null && p instanceof ViewGroup) { - final ViewGroup vg = (ViewGroup) p; - vg.damageInParent(); - } - } - } - /** * Quick invalidation for View property changes (alpha, translationXY, etc.). We don't want to * set any flags or handle all of the cases handled by the default invalidation methods. @@ -14119,9 +14097,6 @@ public class View implements Drawable.Callback, KeyEvent.Callback, } else { damageInParent(); } - if (isHardwareAccelerated() && invalidateParent && getZ() != 0) { - damageShadowReceiver(); - } } /**