summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Hillenbrand <codeworkx@cyanogenmod.org>2014-11-19 08:21:27 -0500
committerGerrit Code Review <gerrit@cyanogenmod.org>2015-10-15 11:35:29 -0700
commitd9f2503a1d78fb9ffa868887b7999f3896ea15d4 (patch)
tree315992cfdb7e6276b650f67b8663308d3d87ec49
parent5b2337c434acff34d85ae14b9cc2d3507fdffe52 (diff)
downloadhardware_libhardware-d9f2503a1d78fb9ffa868887b7999f3896ea15d4.zip
hardware_libhardware-d9f2503a1d78fb9ffa868887b7999f3896ea15d4.tar.gz
hardware_libhardware-d9f2503a1d78fb9ffa868887b7999f3896ea15d4.tar.bz2
gralloc: added exynos4 specific usage bits
Change-Id: I9252c8a8b8b7122afc9f196aa2e0c6b3829b4b1f
-rw-r--r--include/hardware/gralloc.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/include/hardware/gralloc.h b/include/hardware/gralloc.h
index ef86f90..07ac029 100644
--- a/include/hardware/gralloc.h
+++ b/include/hardware/gralloc.h
@@ -143,6 +143,19 @@ enum {
GRALLOC_USAGE_PRIVATE_2 = 0x40000000,
GRALLOC_USAGE_PRIVATE_3 = 0x80000000,
GRALLOC_USAGE_PRIVATE_MASK = 0xF0000000,
+
+#ifdef EXYNOS4_ENHANCEMENTS
+ /* SAMSUNG */
+ GRALLOC_USAGE_PRIVATE_NONECACHE = 0x00800000,
+
+ GRALLOC_USAGE_HW_FIMC1 = 0x01000000,
+ GRALLOC_USAGE_HW_ION = 0x02000000,
+ GRALLOC_USAGE_YUV_ADDR = 0x04000000,
+ GRALLOC_USAGE_CAMERA = 0x08000000,
+
+ /* SEC Private usage , for Overlay path at HWC */
+ GRALLOC_USAGE_HWC_HWOVERLAY = 0x20000000,
+#endif
};
/*****************************************************************************/
@@ -237,6 +250,10 @@ typedef struct gralloc_module_t {
int (*unlock)(struct gralloc_module_t const* module,
buffer_handle_t handle);
+#ifdef EXYNOS4_ENHANCEMENTS
+ int (*getphys) (struct gralloc_module_t const* module,
+ buffer_handle_t handle, void** paddr);
+#endif
/* reserved for future use */
int (*perform)(struct gralloc_module_t const* module,