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

Commit b0493a9b authored by Yifan Hong's avatar Yifan Hong Committed by Android (Google) Code Review
Browse files

Merge "gralloc HAL uses "default" service name"

parents 89ed4c8c 790c3500
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -29,7 +29,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
@@ -28,7 +28,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");
    }