Merge "Fix unnecessary DmaBuffer copying in getIonMappedSizeKb"

This commit is contained in:
Suren Baghdasaryan
2019-12-20 18:20:52 +00:00
committed by Gerrit Code Review

View File

@@ -826,7 +826,7 @@ static jlong android_os_Debug_getIonMappedSizeKb(JNIEnv* env, jobject clazz) {
}
}
for (dmabufinfo::DmaBuffer buf : dmabufs) {
for (const dmabufinfo::DmaBuffer& buf : dmabufs) {
ionPss += buf.size() / 1024;
}