1
0
Fork 0

Merge "drm_hwcomposer: remove unnecessary gralloc_drm_bo_t dependency"

This commit is contained in:
Sean Paul 2016-04-01 20:32:09 +00:00 committed by Gerrit Code Review
commit 1a0eb7eeca

View file

@ -25,8 +25,6 @@
#include <xf86drmMode.h>
#include <cutils/log.h>
#include <gralloc_drm.h>
#include <gralloc_drm_priv.h>
#include <gralloc_drm_handle.h>
#include <hardware/gralloc.h>
@ -90,12 +88,6 @@ int DrmGenericImporter::ImportBuffer(buffer_handle_t handle, hwc_drm_bo_t *bo) {
if (!gr_handle)
return -EINVAL;
struct gralloc_drm_bo_t *gralloc_bo = gr_handle->data;
if (!gralloc_bo) {
ALOGE("Could not get drm bo from handle");
return -EINVAL;
}
uint32_t gem_handle;
int ret = drmPrimeFDToHandle(drm_->fd(), gr_handle->prime_fd, &gem_handle);
if (ret) {