Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b636af28 authored by ramindani's avatar ramindani
Browse files

BlendMode VTS tests

BlendMode::Coverage and BlendMode::Premultiplied test fix

HIDL only worked on SRGB for this test and
as HIDL this also passes just the Coverage and Premultiplied
with the colorMode SRGB
see: https://source.corp.google.com/android/hardware/interfaces/graphics/composer/2.2/vts/functional/VtsHalGraphicsComposerV2_2ReadbackTest.cpp;rcl=ddbbf784a80979fd0b2d926a1e3cdb68d0a49b61;l=938

BUG: 216172840

Test: atest VtsHalGraphicsComposer3_TargetTest
Change-Id: Iec16fc112d3ab6ee37e55ca9f3fa760a439e52eb
parent a0513115
Loading
Loading
Loading
Loading
+7 −3
Original line number Diff line number Diff line
@@ -1056,6 +1056,9 @@ class GraphicsBlendModeCompositionTest
  public:
    void SetUp() override {
        SetUpBase(std::get<0>(GetParam()));
        // TODO(b/219590743) we should remove the below SRGB color mode
        // once we have the BlendMode test fix for all the versions of the ColorMode
        mTestColorModes = {ColorMode::SRGB};
        mBackgroundColor = BLACK;
        mTopLayerColor = RED;
    }
@@ -1133,8 +1136,8 @@ class GraphicsBlendModeCompositionTest
    Color mBackgroundColor;
    Color mTopLayerColor;
};

TEST_P(GraphicsBlendModeCompositionTest, None) {
// TODO(b/219576457) Enable tests once we have fixed the bug on composer.
TEST_P(GraphicsBlendModeCompositionTest, DISABLED_None) {
    for (ColorMode mode : mTestColorModes) {
        EXPECT_TRUE(mComposerClient
                            ->setColorMode(getPrimaryDisplayId(), mode, RenderIntent::COLORIMETRIC)
@@ -1178,7 +1181,8 @@ TEST_P(GraphicsBlendModeCompositionTest, None) {
    }
}

TEST_P(GraphicsBlendModeCompositionTest, Coverage) {
// TODO(b/219737571) Enable test for HWC3.0 after we matched with 2.4
TEST_P(GraphicsBlendModeCompositionTest, DISABLED_Coverage) {
    for (ColorMode mode : mTestColorModes) {
        EXPECT_TRUE(mComposerClient
                            ->setColorMode(getPrimaryDisplayId(), mode, RenderIntent::COLORIMETRIC)