summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Android.mk9
-rw-r--r--gralloc_drm_handle.h5
2 files changed, 14 insertions, 0 deletions
diff --git a/Android.mk b/Android.mk
index 14d0b58..083a73f 100644
--- a/Android.mk
+++ b/Android.mk
@@ -38,3 +38,12 @@ LOCAL_MODULE := gralloc.gbm
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE_RELATIVE_PATH := hw
include $(BUILD_SHARED_LIBRARY)
+
+include $(CLEAR_VARS)
+
+LOCAL_EXPORT_C_INCLUDE_DIRS := \
+ $(LOCAL_PATH)
+
+LOCAL_MODULE := libgralloc_drm
+LOCAL_MODULE_TAGS := optional
+include $(BUILD_SHARED_LIBRARY)
diff --git a/gralloc_drm_handle.h b/gralloc_drm_handle.h
index cd69a4c..9edf22a 100644
--- a/gralloc_drm_handle.h
+++ b/gralloc_drm_handle.h
@@ -86,6 +86,11 @@ static inline int gralloc_drm_get_prime_fd(buffer_handle_t _handle)
return (handle) ? handle->prime_fd : -1;
}
+static inline int gralloc_drm_get_gem_handle(buffer_handle_t handle)
+{
+ return 0; /* Not supported, return invalid handle. */
+}
+
#ifdef __cplusplus
}
#endif