Merge "Relax constraints on getting PlaneLayouts" into rvc-dev am: 28fcdf27e4
am: 9c886cd035
am: 5ef34c28ea
am: 7820a0c99c
Change-Id: Ife507e0a1916eb514299c3f089007de456711e93
This commit is contained in:
commit
0e96fa9741
1 changed files with 9 additions and 7 deletions
|
@ -1865,13 +1865,15 @@ TEST_P(GraphicsMapperHidlTest, GetFromBufferDescriptorInfoChromaSiting) {
|
|||
*/
|
||||
TEST_P(GraphicsMapperHidlTest, GetFromBufferDescriptorInfoPlaneLayouts) {
|
||||
hidl_vec<uint8_t> vec;
|
||||
ASSERT_EQ(Error::NONE,
|
||||
mGralloc->getFromBufferDescriptorInfo(mDummyDescriptorInfo,
|
||||
gralloc4::MetadataType_PlaneLayouts, &vec));
|
||||
|
||||
std::vector<PlaneLayout> planeLayouts;
|
||||
ASSERT_EQ(NO_ERROR, gralloc4::decodePlaneLayouts(vec, &planeLayouts));
|
||||
ASSERT_NO_FATAL_FAILURE(verifyDummyDescriptorInfoPlaneLayouts(planeLayouts));
|
||||
const auto ret = mGralloc->getFromBufferDescriptorInfo(
|
||||
mDummyDescriptorInfo, gralloc4::MetadataType_PlaneLayouts, &vec);
|
||||
if (ret == Error::NONE) {
|
||||
std::vector<PlaneLayout> planeLayouts;
|
||||
ASSERT_EQ(NO_ERROR, gralloc4::decodePlaneLayouts(vec, &planeLayouts));
|
||||
ASSERT_NO_FATAL_FAILURE(verifyDummyDescriptorInfoPlaneLayouts(planeLayouts));
|
||||
} else {
|
||||
ASSERT_EQ(Error::UNSUPPORTED, ret);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue