aboutsummaryrefslogtreecommitdiff
path: root/src/android/psb_gralloc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/android/psb_gralloc.cpp')
-rw-r--r--src/android/psb_gralloc.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/android/psb_gralloc.cpp b/src/android/psb_gralloc.cpp
index e231a62..a6a934b 100644
--- a/src/android/psb_gralloc.cpp
+++ b/src/android/psb_gralloc.cpp
@@ -37,6 +37,10 @@
#ifdef BAYTRAIL
#include <ufo/gralloc.h>
#endif
+#ifndef BAYTRAIL
+#include <hal/hal_public.h>
+#endif
+
using namespace android;
#ifdef LOG_TAG
@@ -161,3 +165,8 @@ int gralloc_getdisplaystatus(buffer_handle_t handle, int* status)
return err;
}
+
+int gralloc_getbuffd(buffer_handle_t handle)
+{
+ return ((IMG_native_handle_t*)handle)->fd[0];
+}