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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user