DO NOT MERGE: drm_hwcomposer: Use Planner interface to provision planes
am: 8cc4e2a2de
* commit '8cc4e2a2de3c0cf932226a5a6042de5d830fa24a':
DO NOT MERGE: drm_hwcomposer: Use Planner interface to provision planes
Change-Id: Ic9d0109dedbaed4378fedb1c3a14948a5d5a3e32
diff --git a/drmconnector.cpp b/drmconnector.cpp
index 8f9ad49..ccb38e2 100644
--- a/drmconnector.cpp
+++ b/drmconnector.cpp
@@ -69,7 +69,7 @@
bool DrmConnector::built_in() const {
return type_ == DRM_MODE_CONNECTOR_LVDS || type_ == DRM_MODE_CONNECTOR_eDP ||
- type_ == DRM_MODE_CONNECTOR_DSI;
+ type_ == DRM_MODE_CONNECTOR_DSI || type_ == DRM_MODE_CONNECTOR_VIRTUAL;
}
int DrmConnector::UpdateModes() {
diff --git a/platformdrmgeneric.cpp b/platformdrmgeneric.cpp
index e94bf26..90ba0e2 100644
--- a/platformdrmgeneric.cpp
+++ b/platformdrmgeneric.cpp
@@ -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 @@
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) {