diff options
author | Jamie Gennis <jgennis@google.com> | 2011-10-12 17:39:00 -0700 |
---|---|---|
committer | Jamie Gennis <jgennis@google.com> | 2011-10-14 16:11:51 -0700 |
commit | 28378392fd5aa3e0a392c9eb64634055678c3987 (patch) | |
tree | f026f3986d6132ea8a6e542dc800d4cacc3e9bd7 /libs/gui/ISurfaceComposer.cpp | |
parent | 5dff2beb5d8bd1db110ee4024c5cd3027eaa4970 (diff) | |
download | frameworks_native-28378392fd5aa3e0a392c9eb64634055678c3987.zip frameworks_native-28378392fd5aa3e0a392c9eb64634055678c3987.tar.gz frameworks_native-28378392fd5aa3e0a392c9eb64634055678c3987.tar.bz2 |
SurfaceFlinger: make sync transactions explicit
This change enables a layer or orientation update transaction sent to
SurfaceFlinger to explicitly request a synchronous transaction.
Change-Id: I97cbba610c13679849f66114b216fa6dbf12f2a9
Diffstat (limited to 'libs/gui/ISurfaceComposer.cpp')
-rw-r--r-- | libs/gui/ISurfaceComposer.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libs/gui/ISurfaceComposer.cpp b/libs/gui/ISurfaceComposer.cpp index eb90147..86bc62a 100644 --- a/libs/gui/ISurfaceComposer.cpp +++ b/libs/gui/ISurfaceComposer.cpp @@ -79,7 +79,7 @@ public: } virtual void setTransactionState(const Vector<ComposerState>& state, - int orientation) + int orientation, uint32_t flags) { Parcel data, reply; data.writeInterfaceToken(ISurfaceComposer::getInterfaceDescriptor()); @@ -90,6 +90,7 @@ public: b->write(data); } data.writeInt32(orientation); + data.writeInt32(flags); remote()->transact(BnSurfaceComposer::SET_TRANSACTION_STATE, data, &reply); } @@ -204,7 +205,8 @@ status_t BnSurfaceComposer::onTransact( state.add(s); } int orientation = data.readInt32(); - setTransactionState(state, orientation); + uint32_t flags = data.readInt32(); + setTransactionState(state, orientation, flags); } break; case BOOT_FINISHED: { CHECK_INTERFACE(ISurfaceComposer, data, reply); |