summaryrefslogtreecommitdiff
path: root/graphics/allocator/2.0/default/service.cpp
diff options
context:
space:
mode:
authorChia-I Wu <olv@google.com>2017-05-11 15:23:54 -0700
committerChia-I Wu <olv@google.com>2017-05-11 23:00:47 +0000
commit17ba27bc610a7dc57bff115466a51eea61b170b7 (patch)
tree65b163fd139a93a6f1cff6a9adc91f155b83e5bf /graphics/allocator/2.0/default/service.cpp
parenteaebef21f009abc61586d2e6b759521ad3ebdc4a (diff)
graphics: set maxThreads to 4 for the allocator
This should help buffer allocation performance. We choose 4 because that is the number of binder threads in SurfaceFlinger. Bug: 38243574 Test: manual Change-Id: I704aacb271fb7fd6a91c9231ab8a5256531eebc9
Diffstat (limited to 'graphics/allocator/2.0/default/service.cpp')
-rw-r--r--graphics/allocator/2.0/default/service.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/graphics/allocator/2.0/default/service.cpp b/graphics/allocator/2.0/default/service.cpp
index a43740c875..99f462cf24 100644
--- a/graphics/allocator/2.0/default/service.cpp
+++ b/graphics/allocator/2.0/default/service.cpp
@@ -24,5 +24,5 @@ using android::hardware::graphics::allocator::V2_0::IAllocator;
using android::hardware::defaultPassthroughServiceImplementation;
int main() {
- return defaultPassthroughServiceImplementation<IAllocator>();
+ return defaultPassthroughServiceImplementation<IAllocator>(4);
}