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

Commit f534e4a1 authored by Ram Indani's avatar Ram Indani Committed by Automerger Merge Worker
Browse files

Merge "Set isOpaque For BlendMode::None" into tm-dev am: cf45b358

parents aa9f97a0 cf45b358
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -76,6 +76,7 @@ LayerSettings TestLayer::toRenderEngineLayerSettings() {

    layerSettings.alpha = ::android::half(mAlpha);
    layerSettings.disableBlending = mBlendMode == BlendMode::NONE;
    layerSettings.source.buffer.isOpaque = mBlendMode == BlendMode::NONE;
    layerSettings.geometry.boundaries = ::android::FloatRect(
            static_cast<float>(mDisplayFrame.left), static_cast<float>(mDisplayFrame.top),
            static_cast<float>(mDisplayFrame.right), static_cast<float>(mDisplayFrame.bottom));
+2 −2
Original line number Diff line number Diff line
@@ -1132,8 +1132,8 @@ class GraphicsBlendModeCompositionTest
    Color mBackgroundColor;
    Color mTopLayerColor;
};
// TODO(b/219576457) Enable tests once we have fixed the bug on composer.
TEST_P(GraphicsBlendModeCompositionTest, DISABLED_None) {

TEST_P(GraphicsBlendModeCompositionTest, None) {
    for (ColorMode mode : mTestColorModes) {
        EXPECT_TRUE(mComposerClient
                            ->setColorMode(getPrimaryDisplayId(), mode, RenderIntent::COLORIMETRIC)