gralloc: Use default interfaces of allocator/mapper

Use default interfaces until BOARD_VNDK_VERSION is enabled

Change-Id: I3192c912ca790174f6fc6acb37988d6720167b07
This commit is contained in:
Naseer Ahmed
2018-03-02 15:42:45 -05:00
committed by Gerrit - the friendly Code Review server
parent 7dab1c1e76
commit 62dd96c7a7
6 changed files with 12 additions and 23 deletions

View File

@@ -32,11 +32,11 @@
using android::hardware::configureRpcThreadpool;
using android::hardware::joinRpcThreadpool;
using vendor::qti::hardware::display::allocator::V1_0::IQtiAllocator;
using vendor::qti::hardware::display::allocator::V1_0::implementation::QtiAllocator;
using android::hardware::graphics::allocator::V2_0::IAllocator;
int main(int, char **) {
android::sp<IQtiAllocator> service = new QtiAllocator();
android::sp<IAllocator> service = new QtiAllocator();
configureRpcThreadpool(1, true /*callerWillJoin*/);
if (service->registerAsService() != android::OK) {
ALOGE("Cannot register QTI Allocator service");