Merge "Fix VTS fail for GraphicsMapperHidlTest" am: eef384a88e
am: a5439e227c
am: 9091f86903
Change-Id: I092c9b06535a4df77440e3a798bb079bc39418db
This commit is contained in:
commit
30425b854e
1 changed files with 6 additions and 1 deletions
|
@ -49,7 +49,12 @@ class Gralloc0HalImpl : public V2_0::passthrough::detail::Gralloc0HalImpl<Hal> {
|
|||
mModule, bufferHandle, descriptorInfo.width, descriptorInfo.height,
|
||||
static_cast<int32_t>(descriptorInfo.format),
|
||||
static_cast<uint64_t>(descriptorInfo.usage), stride);
|
||||
return static_cast<Error>(ret);
|
||||
if (ret == -EINVAL) {
|
||||
return Error::BAD_BUFFER;
|
||||
} else if (ret < 0) {
|
||||
return Error::BAD_VALUE;
|
||||
}
|
||||
return Error::NONE;
|
||||
}
|
||||
Error getTransportSize(const native_handle_t* bufferHandle, uint32_t* outNumFds,
|
||||
uint32_t* outNumInts) override {
|
||||
|
|
Loading…
Reference in a new issue