OSDN Git Service

[DO NOT MERGE] GraphicBufferAllocator: stall alloc for async frees
authorJamie Gennis <jgennis@google.com>
Tue, 11 Dec 2012 01:06:44 +0000 (17:06 -0800)
committerMathias Agopian <mathias@google.com>
Tue, 11 Dec 2012 01:19:37 +0000 (17:19 -0800)
commitf53f9c6d3668490f6c68f5c094c28f645c1b3da3
treede4b9fce9ad3e87543de1a4335f9f1d3d97d426c
parent72c3f7d88160b7c279f90f0efe3c1cb12cd140ae
[DO NOT MERGE] GraphicBufferAllocator: stall alloc for async frees

This change makes GraphicBufferAllocator::alloc wait for pending async frees to
complete before attempting to allocate a gralloc buffer if there are more than
8 pending async frees.

Bug: 7696861
Change-Id: I1fae86e13edefcaa153b8ce9fd057f335716059e
libs/ui/GraphicBufferAllocator.cpp