diff options
author | 2025-01-08 14:19:43 +0800 | |
---|---|---|
committer | 2025-01-08 14:19:43 +0800 | |
commit | e22b5276d1b3bfbb91ebe33a5c5a04988ee39f36 (patch) | |
tree | 15638eb32ba149c7cff69e6dda381052ed30fa90 | |
parent | bf6919ec0eff5482413fbd2a756d2d2064de78c5 (diff) |
Adds missing standard include <memory> for std::shared_ptr<>.
Fixes build breakage from upstream LLVM change:
https://github.com/llvm/llvm-project/commit/ffc7380ff4808fcc21350a39caf7f34073b41697
frameworks/base/libs/hwui/renderthread/HintSessionWrapper.h:101:41: error: implicit instantiation of undefined template 'std::shared_ptr<android::uirenderer::renderthread::HintSessionWrapper::HintSessionBinding>'
101 | std::shared_ptr<HintSessionBinding> mBinding;
| ^
prebuilts/clang/host/linux-x86/clang-dev/include/c++/v1/__fwd/memory.h:24:28: note: template is declared here
24 | class _LIBCPP_TEMPLATE_VIS shared_ptr;
| ^
Test: presubmit
Change-Id: Icc0f366c6f1e57aa9ede9fe4868f0a66dff2db94
-rw-r--r-- | libs/hwui/renderthread/HintSessionWrapper.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libs/hwui/renderthread/HintSessionWrapper.h b/libs/hwui/renderthread/HintSessionWrapper.h index 859cc57dea9f..4c9656792dac 100644 --- a/libs/hwui/renderthread/HintSessionWrapper.h +++ b/libs/hwui/renderthread/HintSessionWrapper.h @@ -20,6 +20,7 @@ #include <private/performance_hint_private.h> #include <future> +#include <memory> #include <optional> #include <vector> |