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

Commit 02f05055 authored by Lajos Molnar's avatar Lajos Molnar Committed by android-build-merger
Browse files

Merge "codec2: cache ion buffers with CPU access flags." into qt-dev

am: 6c7fa038

Change-Id: Iabe51d5d5c98ffeae8d8bd30c8edc751e201283d
parents d43ea645 6c7fa038
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -554,7 +554,11 @@ c2_status_t C2AllocatorIon::mapUsage(
        } else {
            *align = 0; // TODO make this 1
            *heapMask = ~0; // default mask
            if (usage.expected & (C2MemoryUsage::CPU_READ | C2MemoryUsage::CPU_WRITE)) {
                *flags = ION_FLAG_CACHED; // cache CPU accessed buffers
            } else {
                *flags = 0;  // default flags
            }
            res = C2_NO_INIT;
        }
        // add usage to cache