diff options
Diffstat (limited to 'hwc3/ComposerClient.cpp')
-rw-r--r-- | hwc3/ComposerClient.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/hwc3/ComposerClient.cpp b/hwc3/ComposerClient.cpp index 6433136..60c2a5a 100644 --- a/hwc3/ComposerClient.cpp +++ b/hwc3/ComposerClient.cpp @@ -16,9 +16,11 @@ #define ATRACE_TAG (ATRACE_TAG_GRAPHICS | ATRACE_TAG_HAL) +#include "ComposerClient.h" + #include <android-base/logging.h> +#include <android/binder_ibinder_platform.h> -#include "ComposerClient.h" #include "Util.h" namespace aidl::android::hardware::graphics::composer3::impl { @@ -511,4 +513,10 @@ void ComposerClient::destroyResources() { mResources.reset(); } +::ndk::SpAIBinder ComposerClient::createBinder() { + auto binder = BnComposerClient::createBinder(); + AIBinder_setInheritRt(binder.get(), true); + return binder; +} + } // namespace aidl::android::hardware::graphics::composer3::impl |