diff options
author | Sean Callanan <spyffe@google.com> | 2018-05-16 14:35:32 -0700 |
---|---|---|
committer | Sean Callanan <spyffe@google.com> | 2018-05-16 14:35:32 -0700 |
commit | 430d964a57c94bae55c45d8bbad205a32b74e8b0 (patch) | |
tree | 98914e2f36236f11cca46655bda2f0c0c41ada4a /gralloc/gr_utils.h | |
parent | 947af0fec3c735127d67d51198067c38c5864d07 (diff) | |
parent | 22bc506c43d74f429bc3223edc3283bd40b44e62 (diff) | |
download | display-430d964a57c94bae55c45d8bbad205a32b74e8b0.tar.gz |
Merge remote-tracking branch 'goog/qcom/release/LA.UM.7.3.9.08.00.00.385.323' into merge-au323
Bug: 79173695
Change-Id: I4dad9fa602d813a208f80f365fff142006244653
Diffstat (limited to 'gralloc/gr_utils.h')
-rw-r--r-- | gralloc/gr_utils.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gralloc/gr_utils.h b/gralloc/gr_utils.h index 783453ff..fa628717 100644 --- a/gralloc/gr_utils.h +++ b/gralloc/gr_utils.h @@ -32,6 +32,7 @@ #include <android/hardware/graphics/common/1.1/types.h> #include "gralloc_priv.h" +#include "qdMetaData.h" #define SZ_2M 0x200000 #define SZ_1M 0x100000 @@ -67,7 +68,7 @@ inline Type1 ALIGN(Type1 x, Type2 align) { return (Type1)((x + (Type1)align - 1) & ~((Type1)align - 1)); } -bool IsYuvFormat(const private_handle_t *hnd); +bool IsYuvFormat(int format); bool IsCompressedRGBFormat(int format); bool IsUncompressedRGBFormat(int format); uint32_t GetBppForUncompressedRGB(int format); @@ -102,6 +103,10 @@ int GetBufferLayout(private_handle_t *hnd, uint32_t stride[4], uint32_t offset[4 uint32_t *num_planes); uint32_t GetDataAlignment(int format, uint64_t usage); +void GetGpuResourceSizeAndDimensions(const BufferInfo &info, unsigned int *size, + unsigned int *alignedw, unsigned int *alignedh, + GraphicsMetadata *graphics_metadata); +bool GetAdrenoSizeAPIStatus(); } // namespace gralloc #endif // __GR_UTILS_H__ |