Merge "Fix an issue where we could wait for a non-existing transaction" into ics-mr1

This commit is contained in:
Mathias Agopian 2011-11-08 15:55:55 -08:00 committed by Android (Google) Code Review
commit 0fe35d093b

View File

@ -1217,12 +1217,13 @@ void SurfaceFlinger::setTransactionState(const Vector<ComposerState>& state,
sp<Client> client( static_cast<Client *>(s.client.get()) );
transactionFlags |= setClientStateLocked(client, s.state);
}
if (transactionFlags) {
setTransactionFlags(transactionFlags);
}
// if this is a synchronous transaction, wait for it to take effect before
// returning.
if (transactionFlags) {
// this triggers the transaction
setTransactionFlags(transactionFlags);
// if this is a synchronous transaction, wait for it to take effect
// before returning.
if (flags & eSynchronous) {
mTransationPending = true;
}
@ -1236,6 +1237,7 @@ void SurfaceFlinger::setTransactionState(const Vector<ComposerState>& state,
break;
}
}
}
}
int SurfaceFlinger::setOrientation(DisplayID dpy,