display: hwc_buffer_allocator fixes

Fixes an issue where the HWC init randomly blocks on the
allocator init by doing a lazy initialization of the allocator
object. The allocator may not have fully initialized at HWC init.
Also, increases the allocator connection threadpool to 4.

Change-Id: I38454ee25aaf2a211125e55297300eac754fb5cf
CRs-Fixed: 2201202
This commit is contained in:
Naseer Ahmed
2018-03-07 16:00:05 -05:00
parent 58d0e0f083
commit 56c571fbe0
4 changed files with 14 additions and 25 deletions

View File

@@ -37,7 +37,7 @@ using android::hardware::graphics::allocator::V2_0::IAllocator;
int main(int, char **) {
android::sp<IAllocator> service = new QtiAllocator();
configureRpcThreadpool(1, true /*callerWillJoin*/);
configureRpcThreadpool(4, true /*callerWillJoin*/);
if (service->registerAsService() != android::OK) {
ALOGE("Cannot register QTI Allocator service");
return -EINVAL;