commit | 0d07cdd593f982e5f6e75706c7f9a99a3c5a9264 | [log] [tgz] |
---|---|---|
author | Corey Tabaka <eieio@google.com> | Thu Sep 28 11:15:50 2017 -0700 |
committer | Corey Tabaka <eieio@google.com> | Thu Sep 28 13:51:21 2017 -0700 |
tree | 91629517717eb13c52be63aa8f3bf508f0462b9e | |
parent | 55f8883bb5b93c6b88350eeb6052a3f145496fdd [diff] |
Use the HWC caching mechanism to avoid stalls in the ion driver. HWC supports caching buffers for layers using "slot" assignments. Use this in VrFlinger to avoid importing a buffer handle every frame. The avoids periodic stalls we observe in the ion driver when mapping a buffer into the HWC address space. Bug: 66459419 Test: Observe systraces no longer have MapBuffer in HWC in steady state; system does not drop frames. Change-Id: Iba4161b33561322bfbccbfafe600b432a6fa7c44