commit | 79a16ebb6f42c21a21202f7b63ce372f2df15137 | [log] [tgz] |
---|---|---|
author | Michael Butler <butlermichael@google.com> | Sun Feb 07 00:11:13 2021 -0800 |
committer | Michael Butler <butlermichael@google.com> | Thu Feb 11 12:51:44 2021 -0800 |
tree | 6915e7089d6d888b2ac55a5859a14138a739e883 | |
parent | dd37b9a46efd876eae74fb7c04f33145182866bf [diff] [blame] |
Change NNAPI Memory to ref-counted SharedMemory -- hal Bug: 179906132 Test: mma Test: NeuralNetworksTest_static Test: presubmit Change-Id: I6435db906a2efe4938da18149a1fcd6d24730a95
diff --git a/neuralnetworks/utils/common/src/ResilientBurst.cpp b/neuralnetworks/utils/common/src/ResilientBurst.cpp index 0d3cb33..5ca868b 100644 --- a/neuralnetworks/utils/common/src/ResilientBurst.cpp +++ b/neuralnetworks/utils/common/src/ResilientBurst.cpp
@@ -94,7 +94,8 @@ return mBurst; } -ResilientBurst::OptionalCacheHold ResilientBurst::cacheMemory(const nn::Memory& memory) const { +ResilientBurst::OptionalCacheHold ResilientBurst::cacheMemory( + const nn::SharedMemory& memory) const { return getBurst()->cacheMemory(memory); }