[VTS] Removes wait on buffer fence
When we have a fence created with GraphicBuffer We don't need to wait on it in VTS tests, the composer should be able to handle the fence in this case BUG: 219589185 Test: atest VtsHalGraphicsComposer3_TargetTest Change-Id: I688d695bb562dd1fe86cdceb642e746cbafe8b30
This commit is contained in:
parent
07e6f8499b
commit
58ced4f54e
2 changed files with 0 additions and 14 deletions
|
@ -565,11 +565,6 @@ TEST_P(GraphicsCompositionTest, ClientComposition) {
|
|||
int32_t clientFence;
|
||||
const auto unlockStatus = graphicBuffer->unlockAsync(&clientFence);
|
||||
ASSERT_EQ(::android::OK, unlockStatus);
|
||||
if (clientFence >= 0) {
|
||||
sync_wait(clientFence, -1);
|
||||
close(clientFence);
|
||||
}
|
||||
|
||||
mWriter.setClientTarget(getPrimaryDisplayId(), /*slot*/ 0, buffer, clientFence,
|
||||
clientDataspace, std::vector<common::Rect>(1, damage));
|
||||
layer->setToClientComposition(mWriter);
|
||||
|
@ -676,11 +671,6 @@ TEST_P(GraphicsCompositionTest, DeviceAndClientComposition) {
|
|||
int32_t clientFence;
|
||||
const auto unlockStatus = graphicBuffer->unlockAsync(&clientFence);
|
||||
ASSERT_EQ(::android::OK, unlockStatus);
|
||||
if (clientFence >= 0) {
|
||||
sync_wait(clientFence, -1);
|
||||
close(clientFence);
|
||||
}
|
||||
|
||||
mWriter.setClientTarget(getPrimaryDisplayId(), /*slot*/ 0, buffer, clientFence,
|
||||
clientDataspace, std::vector<common::Rect>(1, clientFrame));
|
||||
clientLayer->setToClientComposition(mWriter);
|
||||
|
|
|
@ -328,10 +328,6 @@ void TestBufferLayer::fillBuffer(std::vector<Color>& expectedColors) {
|
|||
|
||||
const auto unlockStatus = mGraphicBuffer->unlockAsync(&mFillFence);
|
||||
ASSERT_EQ(::android::OK, unlockStatus);
|
||||
if (mFillFence >= 0) {
|
||||
sync_wait(mFillFence, -1);
|
||||
close(mFillFence);
|
||||
}
|
||||
}
|
||||
|
||||
void TestBufferLayer::setBuffer(std::vector<Color> colors) {
|
||||
|
|
Loading…
Reference in a new issue