summaryrefslogtreecommitdiff
path: root/graphics/allocator/2.0/default/service.cpp
diff options
context:
space:
mode:
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);
}