Switch the SystemMemory atom to use the dmabuf interface for ion

Newer devices will migrate and disable ion support altogether.
The dmabuf interface will fallback to ion after aosp/1619803.

Test: manual test
Change-Id: I0f882d264f22245d7535850e3157e2e65d49984e
Bug: 167709539
This commit is contained in:
Ioannis Ilkos
2021-03-12 16:58:55 +00:00
parent 069895aec6
commit eaf50d817b

View File

@@ -26,7 +26,7 @@ final class SystemMemoryUtil {
private SystemMemoryUtil() {}
static Metrics getMetrics() {
int totalIonKb = (int) Debug.getIonHeapsSizeKb();
int totalIonKb = (int) Debug.getDmabufHeapTotalExportedKb();
int gpuTotalUsageKb = (int) Debug.getGpuTotalUsageKb();
int gpuDmaBufUsageKb = (int) Debug.getGpuDmaBufUsageKb();
int dmaBufTotalExportedKb = (int) Debug.getDmabufTotalExportedKb();