Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 790c3500 authored by Chris Phoenix's avatar Chris Phoenix Committed by Yifan Hong
Browse files

gralloc HAL uses "default" service name

The getService() and registerAsService() methods of interface objects
now have default parameters of "default" for the service name. HALs
will not have to use any service name unless they want to register
more than one service.

Test: builds

Bug: 33844934
Change-Id: I65d9d283fe7b72ddb286ff41bd23ca33345d466c
parent 07c0b54a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -28,7 +28,7 @@ constexpr Error kDefaultError = Error::NO_RESOURCES;

Allocator::Allocator()
{
    mAllocator = IAllocator::getService("gralloc");
    mAllocator = IAllocator::getService();
    if (mAllocator != nullptr) {
        mAllocator->createClient(
                [&](const auto& tmpError, const auto& tmpClient) {
+1 −1
Original line number Diff line number Diff line
@@ -30,7 +30,7 @@ static constexpr Error kDefaultError = Error::NO_RESOURCES;

Mapper::Mapper()
{
    mMapper = IMapper::getService("gralloc-mapper");
    mMapper = IMapper::getService();
    if (mMapper != nullptr && mMapper->isRemote()) {
        LOG_ALWAYS_FATAL("gralloc-mapper must be in passthrough mode");
    }