diff options
Diffstat (limited to 'gralloc/gr_utils.h')
-rw-r--r-- | gralloc/gr_utils.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/gralloc/gr_utils.h b/gralloc/gr_utils.h index f2efddaf..e21f92b8 100644 --- a/gralloc/gr_utils.h +++ b/gralloc/gr_utils.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2011-2016,2018-2019, The Linux Foundation. All rights reserved. + * Copyright (c) 2011-2016,2018-2020, 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 @@ -63,6 +63,12 @@ struct BufferInfo { uint64_t usage; }; +struct GrallocProperties { + bool use_system_heap_for_sensors = true; + bool ubwc_disable = false; + bool ahardware_buffer_disable = false; +}; + template <class Type1, class Type2> inline Type1 ALIGN(Type1 x, Type2 align) { return (Type1)((x + (Type1)align - 1) & ~((Type1)align - 1)); |