summaryrefslogtreecommitdiff
path: root/gralloc/gralloc_priv.h
diff options
context:
space:
mode:
authorLaura Abbott <labbott@redhat.com>2017-06-30 11:39:35 +0530
committerSumit Semwal <sumit.semwal@linaro.org>2017-10-12 17:35:59 +0530
commit6ed00bc72616015cca7621430da3745cab9166fc (patch)
treecaa199f33f9c0ac35c89fc68ef6e2a5a8960dd97 /gralloc/gralloc_priv.h
parentd03eb73071bb90c205c73754e0d3c574e6dccef3 (diff)
downloadhikey-6ed00bc72616015cca7621430da3745cab9166fc.tar.gz
hikey: gralloc Update for new ION interface
4.12+ kernels have an updated ION interface; this adapts hikey's gralloc to work seemlessly with both old and new kernels' interfaces. Test: validated with both new and old kernels on hikey, with aosp master Signed-off-by: Laura Abbott <labbott@redhat.com> Signed-off-by: Sumit Semwal <sumit.semwal@linaro.org> [sumits: maintain compatibility with older kernels] Change-Id: Ic30470004b48f14765fdee8179de6d17f7b448b5
Diffstat (limited to 'gralloc/gralloc_priv.h')
-rw-r--r--gralloc/gralloc_priv.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/gralloc/gralloc_priv.h b/gralloc/gralloc_priv.h
index 36159606..582c4875 100644
--- a/gralloc/gralloc_priv.h
+++ b/gralloc/gralloc_priv.h
@@ -110,6 +110,8 @@ struct private_module_t
pthread_mutex_t lock;
buffer_handle_t currentBuffer;
int ion_client;
+ int system_heap_id;
+ bool gralloc_legacy_ion;
struct fb_var_screeninfo info;
struct fb_fix_screeninfo finfo;