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

Commit e3fc10fb authored by Ricardo Cerqueira's avatar Ricardo Cerqueira Committed by Ethan Chen
Browse files

exynos4: getphys implementation on buffermanager for samsung omx

Change-Id: I73d9633e1a7b3316ede28dd1369f8f069609cbb0
parent 3141dc73
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -59,6 +59,10 @@ public:

    status_t unlockAsync(buffer_handle_t handle, int *fenceFd);

#ifdef EXYNOS4_ENHANCEMENTS
    status_t getphys(buffer_handle_t handle, void** paddr);
#endif

    // dumps information about the mapping of this handle
    void dump(buffer_handle_t handle);

+13 −0
Original line number Diff line number Diff line
@@ -190,5 +190,18 @@ status_t GraphicBufferMapper::unlockAsync(buffer_handle_t handle, int *fenceFd)
    return err;
}

#ifdef EXYNOS4_ENHANCEMENTS
status_t GraphicBufferMapper::getphys(buffer_handle_t handle, void** paddr)
{
    status_t err;

    err = mAllocMod->getphys(mAllocMod, handle, paddr);

    ALOGW_IF(err, "getphys(%p) fail %d(%s)", handle, err, strerror(-err));
    return err;
}
#endif


// ---------------------------------------------------------------------------
}; // namespace android