OSDN Git Service

Fix layer removal transaction.
authorJeff Brown <jeffbrown@google.com>
Wed, 15 Aug 2012 08:08:54 +0000 (01:08 -0700)
committerJeff Brown <jeffbrown@google.com>
Wed, 15 Aug 2012 08:16:16 +0000 (01:16 -0700)
commit01eb979243a57bd33f8389aeeade8024dd0258c0
treedb1c8e4f388e2d904ae311a5ddca8e416fba9195
parentea599dfff03b45903dae3288274c31cb24fd483f
Fix layer removal transaction.

Layers were not properly being removed because we were
setting the wrong transaction type flag at the time of
removal.

When layers are removed, we must use eDisplayTransactionNeeded,
not eTransactionNeeded, to ensure that the mLayersRemoved
flag is checked and the appropriate cleanup occurs.

Bug: 6970310
Change-Id: Id4b2897a34d4ac00aa0f92349c0ec6db95c1aaf7
services/surfaceflinger/SurfaceFlinger.cpp