summaryrefslogtreecommitdiffstats
path: root/libs/ui/GraphicBufferAllocator.cpp
diff options
context:
space:
mode:
authorJamie Gennis <jgennis@google.com>2012-12-06 17:51:53 -0800
committerJamie Gennis <jgennis@google.com>2012-12-06 18:17:35 -0800
commitb21a4e3b5f7f07ed160ca6e1809313e2a8e2a6a4 (patch)
treea27b96ec4dac41a3682c9d62f3661738e0308442 /libs/ui/GraphicBufferAllocator.cpp
parentefd614b869e952792b009db4ab54f3bb4375d198 (diff)
downloadframeworks_native-b21a4e3b5f7f07ed160ca6e1809313e2a8e2a6a4.zip
frameworks_native-b21a4e3b5f7f07ed160ca6e1809313e2a8e2a6a4.tar.gz
frameworks_native-b21a4e3b5f7f07ed160ca6e1809313e2a8e2a6a4.tar.bz2
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
Diffstat (limited to 'libs/ui/GraphicBufferAllocator.cpp')
0 files changed, 0 insertions, 0 deletions