commit | e6b63e1ae12692327f7e46d5f10d6ade5a7bf192 | [log] [tgz] |
---|---|---|
author | Chia-I Wu <olv@google.com> | Tue May 30 14:54:08 2017 -0700 |
committer | Chia-I Wu <olv@google.com> | Mon Jun 05 17:09:27 2017 +0000 |
tree | 9156c859372059940b2bece025f06871cbf37e8c | |
parent | eb30998a33355d4ab4570f0d6467a3ab4909a049 [diff] |
surfaceflinger: fix layer count When a layer is removed, mLayerCount is always decremented by 1 even though the layer has children. This commit fixes that by making sure mLayerCount is properly decremented, and makes sure that a parent layer must be a valid layer in mCurrentState. Bug: 37121786 Test: manually open and close Camera app Change-Id: I5a3e18be41646b167b4d361dfe08db4d06e1c2d0 (cherry picked from commit 98f1c108b016dda77c808f3d099e7a45bdd70768)