mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 16:50:18 +00:00
Merge "Make gralloc0 pass-through mapper handle layers" am: b756e23e5c am: 6982d1aec5 am: 6c3213c940
am:afc577e108Change-Id: I54f2e01bf8ffe43dbe786a73cfd7818661230090 (cherry picked from commitfc8d43692c)
This commit is contained in:
committed by
Enrico Granata
parent
2b7fefdc97
commit
8dd7db3204
@@ -37,6 +37,10 @@ class Gralloc0HalImpl : public V2_0::passthrough::detail::Gralloc0HalImpl<Hal> {
|
||||
Error validateBufferSize(const native_handle_t* bufferHandle,
|
||||
const IMapper::BufferDescriptorInfo& descriptorInfo,
|
||||
uint32_t stride) override {
|
||||
if (descriptorInfo.layerCount != 1) {
|
||||
return Error::BAD_VALUE;
|
||||
}
|
||||
|
||||
if (!mModule->validateBufferSize) {
|
||||
return Error::NONE;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user