diff options
Diffstat (limited to 'gralloc/gr_utils.h')
-rw-r--r-- | gralloc/gr_utils.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gralloc/gr_utils.h b/gralloc/gr_utils.h index 39d7e9bd..6b86ee63 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 @@ -30,7 +30,7 @@ #ifndef __GR_UTILS_H__ #define __GR_UTILS_H__ -#include <android/hardware/graphics/common/1.1/types.h> +#include <android/hardware/graphics/common/1.2/types.h> #include "gralloc_priv.h" #include "qdMetaData.h" @@ -132,6 +132,7 @@ uint32_t GetBppForUncompressedRGB(int format); bool CpuCanAccess(uint64_t usage); bool CpuCanRead(uint64_t usage); bool CpuCanWrite(uint64_t usage); +int GetBpp(int format); unsigned int GetSize(const BufferInfo &d, unsigned int alignedw, unsigned int alignedh); int GetBufferSizeAndDimensions(const BufferInfo &d, unsigned int *size, unsigned int *alignedw, unsigned int *alignedh); |