diff options
author | Long Ling <longling@google.com> | 2021-11-17 16:06:37 -0800 |
---|---|---|
committer | Long Ling <longling@google.com> | 2021-11-17 16:08:05 -0800 |
commit | ce5adfbb21742b7e770d40eafd55b79a68200e07 (patch) | |
tree | 2f4195f0c83ceac397bef99f3ceb7f869979128f /hwc3/Composer.cpp | |
parent | 27849e869f9a6573cc990f017fb559966f9644ee (diff) |
hwc3: update return code
Bug: 206690544
Change-Id: I265718cc26f8416f6fd15c9225d02a372488b0fb
Diffstat (limited to 'hwc3/Composer.cpp')
-rw-r--r-- | hwc3/Composer.cpp | 4 |
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(); }; |