Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit eaf50d81 authored by Ioannis Ilkos's avatar Ioannis Ilkos
Browse files

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
parent 069895ae
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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();