Merge "Fix an issue where we could wait for a non-existing transaction" into ics-mr1
This commit is contained in:
commit
0fe35d093b
@ -1217,12 +1217,13 @@ void SurfaceFlinger::setTransactionState(const Vector<ComposerState>& state,
|
|||||||
sp<Client> client( static_cast<Client *>(s.client.get()) );
|
sp<Client> client( static_cast<Client *>(s.client.get()) );
|
||||||
transactionFlags |= setClientStateLocked(client, s.state);
|
transactionFlags |= setClientStateLocked(client, s.state);
|
||||||
}
|
}
|
||||||
if (transactionFlags) {
|
|
||||||
setTransactionFlags(transactionFlags);
|
|
||||||
}
|
|
||||||
|
|
||||||
// if this is a synchronous transaction, wait for it to take effect before
|
if (transactionFlags) {
|
||||||
// returning.
|
// this triggers the transaction
|
||||||
|
setTransactionFlags(transactionFlags);
|
||||||
|
|
||||||
|
// if this is a synchronous transaction, wait for it to take effect
|
||||||
|
// before returning.
|
||||||
if (flags & eSynchronous) {
|
if (flags & eSynchronous) {
|
||||||
mTransationPending = true;
|
mTransationPending = true;
|
||||||
}
|
}
|
||||||
@ -1237,6 +1238,7 @@ void SurfaceFlinger::setTransactionState(const Vector<ComposerState>& state,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
int SurfaceFlinger::setOrientation(DisplayID dpy,
|
int SurfaceFlinger::setOrientation(DisplayID dpy,
|
||||||
int orientation, uint32_t flags)
|
int orientation, uint32_t flags)
|
||||||
|
Loading…
Reference in New Issue
Block a user