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

Commit 46b7e320 authored by Ricardo Cerqueira's avatar Ricardo Cerqueira Committed by Steve Kondik
Browse files

exynos4: getphys implementation on buffermanager for samsung omx

Conflicts:
	include/media/hardware/HardwareAPI.h
	include/ui/GraphicBufferMapper.h
	libs/ui/GraphicBufferMapper.cpp

Conflicts:
	libs/ui/GraphicBufferMapper.cpp

Change-Id: I88db141e29a50986bee8d9555d145d1f92ea6ecf
parent 122f3e26
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -58,6 +58,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);

+14 −0
Original line number Diff line number Diff line
@@ -171,5 +171,19 @@ 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