commit | 98f1c108b016dda77c808f3d099e7a45bdd70768 | [log] [tgz] |
---|---|---|
author | Chia-I Wu <olv@google.com> | Tue May 30 14:54:08 2017 -0700 |
committer | Chia-I Wu <olv@google.com> | Thu Jun 01 08:37:35 2017 -0700 |
tree | 93ecea78325d084ad6c8a6e40416bc42b8858afb | |
parent | cb496acbe593326e8d5d563847067d02b2df40ec [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