summaryrefslogtreecommitdiff
path: root/graphics/allocator/2.0/default/service.cpp
diff options
context:
space:
mode:
authorBaldev Sahu <bsahu@codeaurora.org>2018-09-12 14:41:03 +0530
committerBaldev Sahu <bsahu@codeaurora.org>2018-09-14 09:48:05 +0530
commit4852895808d7e65ce8b83ee288e32fecc960b854 (patch)
treec50139331321c02c03418c14348b80d443d2a944 /graphics/allocator/2.0/default/service.cpp
parent38d6f269f9bb8081bd3cb3d6e620a4834eeafec8 (diff)
Tuning of Binder buffer for below HALs
1. Allocator 2. ConfigStore 3. Light Set the Binder buffer memory limit for above HALs. CRs-Fixed: 2275027 Change-Id: I11d3bcf6073d3d6412491c88acc9f79496ed1ba0
Diffstat (limited to 'graphics/allocator/2.0/default/service.cpp')
-rw-r--r--graphics/allocator/2.0/default/service.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/graphics/allocator/2.0/default/service.cpp b/graphics/allocator/2.0/default/service.cpp
index bc0539a617..ca1fee4f2d 100644
--- a/graphics/allocator/2.0/default/service.cpp
+++ b/graphics/allocator/2.0/default/service.cpp
@@ -19,10 +19,15 @@
#include <android/hardware/graphics/allocator/2.0/IAllocator.h>
#include <hidl/LegacySupport.h>
+#include <hwbinder/ProcessState.h>
using android::hardware::defaultPassthroughServiceImplementation;
using android::hardware::graphics::allocator::V2_0::IAllocator;
int main() {
+
+#ifdef ARCH_ARM_32
+ android::hardware::ProcessState::initWithMmapSize((size_t)(32768));
+#endif
return defaultPassthroughServiceImplementation<IAllocator>(4);
}