commit | cdef3127dc5deb31c42943fd336ff29fed7a2e84 | [log] [tgz] |
---|---|---|
author | Kevin Jeon <kevinjeon@google.com> | Tue Mar 05 17:42:57 2024 -0500 |
committer | Kevin Jeon <kevinjeon@google.com> | Tue Mar 05 17:42:57 2024 -0500 |
tree | af68dee2f1729595248b4a7697985109ca5fc3b5 | |
parent | 9a0a4df0a78d3ffe7b6b4f08b0090b3bb35d4687 [diff] |
Update VmaCallbacks to return bool A change to libmeminfo now requires that VmaCallbacks return a bool value. This updates the existing usage in camera_device.cc with a no-op 'return true'. Test: n/a Bug: 320480542 Change-Id: I1f3756a3729c90a8cef2f6159109c649e7c19b52
diff --git a/common/hal/google_camera_hal/camera_device.cc b/common/hal/google_camera_hal/camera_device.cc index 55c3a41..0520626 100644 --- a/common/hal/google_camera_hal/camera_device.cc +++ b/common/hal/google_camera_hal/camera_device.cc
@@ -103,6 +103,7 @@ })) { ReadAheadVma(vma, kMadviseSizeLimitBytes); } + return true; }; ProcMemInfo meminfo(getpid()); meminfo.ForEachVmaFromMaps(vmaCollectorCb);