diff options
Diffstat (limited to 'libgralloc1/gr_ion_alloc.h')
-rw-r--r-- | libgralloc1/gr_ion_alloc.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libgralloc1/gr_ion_alloc.h b/libgralloc1/gr_ion_alloc.h index baef8aa8..68f453cc 100644 --- a/libgralloc1/gr_ion_alloc.h +++ b/libgralloc1/gr_ion_alloc.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2011-2015, The Linux Foundation. All rights reserved. + * Copyright (c) 2011-2017, The Linux Foundation. All rights reserved. * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are @@ -45,6 +45,7 @@ enum { struct AllocData { void *base = NULL; int fd = -1; + int ion_handle = -1; unsigned int offset = 0; unsigned int size = 0; unsigned int align = 1; @@ -63,7 +64,7 @@ class IonAlloc { bool Init(); int AllocBuffer(AllocData *data); - int FreeBuffer(void *base, unsigned int size, unsigned int offset, int fd); + int FreeBuffer(void *base, unsigned int size, unsigned int offset, int fd, int ion_handle); int MapBuffer(void **base, unsigned int size, unsigned int offset, int fd); int UnmapBuffer(void *base, unsigned int size, unsigned int offset); int CleanBuffer(void *base, unsigned int size, unsigned int offset, int fd, int op); |