summaryrefslogtreecommitdiff
path: root/hwc3/Composer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'hwc3/Composer.cpp')
-rw-r--r--hwc3/Composer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/hwc3/Composer.cpp b/hwc3/Composer.cpp
index 87f7907..5e10079 100644
--- a/hwc3/Composer.cpp
+++ b/hwc3/Composer.cpp
@@ -28,13 +28,13 @@ ndk::ScopedAStatus Composer::createClient(std::shared_ptr<IComposerClient>* outC
std::unique_lock<std::mutex> lock(mClientMutex);
if (!waitForClientDestroyedLocked(lock)) {
*outClient = nullptr;
- return ndk::ScopedAStatus::fromStatus(EX_NO_RESOURCES);
+ return TO_BINDER_STATUS(EX_NO_RESOURCES);
}
auto client = ndk::SharedRefBase::make<ComposerClient>(mHal.get());
if (!client || !client->init()) {
*outClient = nullptr;
- return ndk::ScopedAStatus::fromStatus(EX_NO_RESOURCES);
+ return TO_BINDER_STATUS(EX_NO_RESOURCES);
}
auto clientDestroyed = [this]() { onClientDestroyed(); };