commit | fadeb8a92046c6941db721145de3514cf6015079 | [log] [tgz] |
---|---|---|
author | Michael Butler <butlermichael@google.com> | Sun Feb 07 00:11:13 2021 -0800 |
committer | Michael Butler <butlermichael@google.com> | Wed Feb 17 10:15:09 2021 -0800 |
tree | 46501456b0f8d992dce71feb55a71aa68c2c432a | |
parent | 0ace84a193a73e3220b3f74d7de6bbc2b6745368 [diff] [blame] |
Change NNAPI Memory to ref-counted SharedMemory -- hal Bug: 179906132 Test: mma Test: NeuralNetworksTest_static Test: presubmit Change-Id: I6435db906a2efe4938da18149a1fcd6d24730a95 Merged-In: I6435db906a2efe4938da18149a1fcd6d24730a95 (cherry picked from commit 79a16ebb6f42c21a21202f7b63ce372f2df15137)
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); }