commit | b21a4e3b5f7f07ed160ca6e1809313e2a8e2a6a4 | [log] [tgz] |
---|---|---|
author | Jamie Gennis <jgennis@google.com> | Thu Dec 06 17:51:53 2012 -0800 |
committer | Jamie Gennis <jgennis@google.com> | Thu Dec 06 18:17:35 2012 -0800 |
tree | a27b96ec4dac41a3682c9d62f3661738e0308442 | |
parent | efd614b869e952792b009db4ab54f3bb4375d198 [diff] |
ConsumerBase: free buffers outside the lock This change makes ConsumerBase::onBuffersReleased hold a reference to all its gralloc buffers until after the mutex is unlocked. This prevents slow gralloc::free calls from causing lock contention with rendering threads. Bug: 7675940 Change-Id: I0ec805d1b612afeeecfffec03f982371d27d93be