diff options
| author | Romain Guy <romainguy@google.com> | 2012-06-14 12:52:53 -0700 |
|---|---|---|
| committer | Romain Guy <romainguy@google.com> | 2012-06-14 14:25:08 -0700 |
| commit | 54ab347fdde0e4d14d923cca80e5bcc7b879fc52 (patch) | |
| tree | d26e29f10f1352dfc396560db2ab1f68b3f61b2e /core/java/android/view/ViewRootImpl.java | |
| parent | 15c9c6141a00cd91290928bce742a2ae6761aca2 (diff) | |
Don't create a giant layer for all notifications
Bug #6642475
When expanding the status bar, create one layer per notification instead of
a single giant layer for the pile of notifications. This prevents layer
creation failure when the total height of the notifications is larger
than the maximum allowed texture size in OpenGL ES 2.0.
This change only enables layers on notifications that will be visible
once the notification area is fully expanded.
Change-Id: I3c791a66cf5ac0973f3a65cfcd84b95209d580f3
Diffstat (limited to 'core/java/android/view/ViewRootImpl.java')
| -rw-r--r-- | core/java/android/view/ViewRootImpl.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/core/java/android/view/ViewRootImpl.java b/core/java/android/view/ViewRootImpl.java index cdc51d1bb40d..51fd3460d0a2 100644 --- a/core/java/android/view/ViewRootImpl.java +++ b/core/java/android/view/ViewRootImpl.java @@ -3926,10 +3926,9 @@ public final class ViewRootImpl implements ViewParent, } public void dumpGfxInfo(int[] info) { + info[0] = info[1] = 0; if (mView != null) { getGfxInfo(mView, info); - } else { - info[0] = info[1] = 0; } } |
