exynos4: getphys implementation on buffermanager for samsung omx

Change-Id: I73d9633e1a7b3316ede28dd1369f8f069609cbb0
This commit is contained in:
Ricardo Cerqueira 2013-11-03 03:06:55 +00:00 committed by Ethan Chen
parent 3141dc73b6
commit e3fc10fbb7
2 changed files with 17 additions and 0 deletions

View File

@ -59,6 +59,10 @@ public:
status_t unlockAsync(buffer_handle_t handle, int *fenceFd); 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 // dumps information about the mapping of this handle
void dump(buffer_handle_t handle); void dump(buffer_handle_t handle);

View File

@ -190,5 +190,18 @@ status_t GraphicBufferMapper::unlockAsync(buffer_handle_t handle, int *fenceFd)
return err; 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 }; // namespace android