commit | eac3db27221c72e1a304b88fb1076c1f8c7be6ba | [log] [tgz] |
---|---|---|
author | Chia-I Wu <olv@google.com> | Fri Sep 14 11:28:03 2018 -0700 |
committer | Chia-I Wu <olv@google.com> | Mon Oct 01 13:07:40 2018 -0700 |
tree | 44b21f13f54e20c61b8534c1ae5864464d6d5cbf | |
parent | 378461558c17da362bada8eaa5ddeb8b12f93fd1 [diff] |
surfaceflinger: use std::queue for mPendingEvents Replace Vector by std::queue for mPendingEvents. It is used for pending hotplug events, which happen rarely and are consumed one by one quickly by an RT thread. std::queue is likely no better than std::vector in that scenario, but is more expressive. Bug: 115738279 Test: boots Change-Id: Ia906a7f08ecbe6d5534cd6ec42e5af2ac865a911