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

This commit is contained in:
Ram Indani
2022-04-22 19:26:54 +00:00
committed by Android (Google) Code Review
2 changed files with 3 additions and 2 deletions

View File

@@ -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));

View File

@@ -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)