From b1bd1e8a3253242a164ce80476452027bc0da2eb Mon Sep 17 00:00:00 2001 From: Alec Mouri Date: Fri, 9 Jul 2021 11:15:18 -0700 Subject: [PATCH] Clear composition changes when a color mode is not supported Otherwise this may cause a test to spuriously fail during teardown. Bug: 184726169 Test: VtsHalGraphicsComposerV2_2TargetTest Change-Id: I569680a0fe6c866199ba0711e8cc263b9b3efd58 --- .../vts/functional/VtsHalGraphicsComposerV2_2ReadbackTest.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/graphics/composer/2.2/vts/functional/VtsHalGraphicsComposerV2_2ReadbackTest.cpp b/graphics/composer/2.2/vts/functional/VtsHalGraphicsComposerV2_2ReadbackTest.cpp index 7a1568bd9f..7a053f1eb7 100644 --- a/graphics/composer/2.2/vts/functional/VtsHalGraphicsComposerV2_2ReadbackTest.cpp +++ b/graphics/composer/2.2/vts/functional/VtsHalGraphicsComposerV2_2ReadbackTest.cpp @@ -458,6 +458,7 @@ TEST_P(GraphicsCompositionTest, ClientComposition) { << " pixel format: PixelFormat::RGBA_8888 dataspace: " << ReadbackHelper::getDataspaceString(clientDataspace) << " unsupported for display" << std::endl; + mReader->mCompositionChanges.clear(); continue; }