mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-02 06:22:53 +00:00
Merge "getDisplayDecorationSupport test: allow errors" into tm-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
a0fb8acaa5
@@ -1627,10 +1627,8 @@ TEST_P(GraphicsComposerAidlCommandTest, DisplayDecoration) {
|
||||
|
||||
const auto [error, support] =
|
||||
mComposerClient->getDisplayDecorationSupport(display.getDisplayId());
|
||||
EXPECT_TRUE(error.isOk());
|
||||
|
||||
const auto format =
|
||||
support ? support->format
|
||||
const auto format = (error.isOk() && support) ? support->format
|
||||
: aidl::android::hardware::graphics::common::PixelFormat::RGBA_8888;
|
||||
const auto decorBuffer = allocate(static_cast<::android::PixelFormat>(format));
|
||||
ASSERT_NE(nullptr, decorBuffer);
|
||||
|
||||
Reference in New Issue
Block a user