Cleanup Obsolete LOCAL_PRELINK_MODULE.
[GitHub/LineageOS/android_hardware_samsung_slsi_exynos5.git] / include / gralloc_priv.h
index 6dd1597379f18bc6c8c8e91686a078ebd91ca61a..416101c934571062f927d18b4e267a9a293b2421 100644 (file)
@@ -33,6 +33,7 @@
 
 struct private_module_t;
 struct private_handle_t;
+typedef int ion_user_handle_t;
 
 struct private_module_t {
     gralloc_module_t base;
@@ -42,6 +43,7 @@ struct private_module_t {
     uint32_t numBuffers;
     uint32_t bufferMask;
     pthread_mutex_t lock;
+    unsigned int refcount;
     buffer_handle_t currentBuffer;
     int ionfd;
 
@@ -65,6 +67,9 @@ struct private_handle_t {
     struct native_handle nativeHandle;
 #endif
 
+// set if using video encoding colorspace
+#define GRALLOC_USAGE_PRIVATE_CHROMA (GRALLOC_USAGE_PRIVATE_0)
+
     enum {
         PRIV_FLAGS_FRAMEBUFFER = 0x00000001,
         PRIV_FLAGS_USES_UMP    = 0x00000002,
@@ -93,9 +98,9 @@ struct private_handle_t {
     void    *base;
     void    *base1;
     void    *base2;
-    struct ion_handle *handle;
-    struct ion_handle *handle1;
-    struct ion_handle *handle2;
+    ion_user_handle_t handle;
+    ion_user_handle_t handle1;
+    ion_user_handle_t handle2;
 
 #ifdef __cplusplus
     static const int sNumFds = 3;