mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 22:04:26 +00:00
Merge "Set isOpaque For BlendMode::None" into tm-dev
This commit is contained in:
@@ -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));
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user