Gralloc: Implement getCustomFormatFlags API
Implement API to get custom format and private handle flags
based on a given combination of input format and usage flags.
Change-Id: Id87e9abe834fb17c6304262cc486a84131c8809a
CRs-Fixed: 2255171
diff --git a/gralloc/gr_adreno_info.cpp b/gralloc/gr_adreno_info.cpp
index 1288d92..73f9ce0 100644
--- a/gralloc/gr_adreno_info.cpp
+++ b/gralloc/gr_adreno_info.cpp
@@ -267,4 +267,11 @@
LINK_adreno_get_aligned_gpu_buffer_size);
}
+bool AdrenoMemInfo::IsPISupportedByGPU(int format, uint64_t usage) {
+ if (LINK_adreno_isPISupportedByGpu) {
+ return LINK_adreno_isPISupportedByGpu(format, usage);
+ }
+ return false;
+}
+
} // namespace gralloc