diff options
| author | 2012-07-24 20:43:54 -0700 | |
|---|---|---|
| committer | 2012-07-24 20:43:54 -0700 | |
| commit | 8b33f032327f8de0dcc0e6d0d43ed80f834b51f6 (patch) | |
| tree | d6228a0088740fe5f5c73f405f353bffd121bbae /libs/gui/SurfaceComposerClient.cpp | |
| parent | 921e6ac4b7610a178285898d191eb0e3afe906c0 (diff) | |
update SF binder protocol to support setting display attributes
no change of functionality -- the old behavior is implemented
on top of this new protocol.
this new protocol will allow, eventually, to pass informations
about displays and layer stacks.
Change-Id: Ic6c2295e61ec8ecbc8ce01ab7664e35d928202fc
Diffstat (limited to 'libs/gui/SurfaceComposerClient.cpp')
| -rw-r--r-- | libs/gui/SurfaceComposerClient.cpp | 10 | 
1 files changed, 7 insertions, 3 deletions
| diff --git a/libs/gui/SurfaceComposerClient.cpp b/libs/gui/SurfaceComposerClient.cpp index b1bd78bc7e..8aa0c55169 100644 --- a/libs/gui/SurfaceComposerClient.cpp +++ b/libs/gui/SurfaceComposerClient.cpp @@ -138,7 +138,7 @@ void Composer::closeGlobalTransactionImpl(bool synchronous) {      sp<ISurfaceComposer> sm(getComposerService());      Vector<ComposerState> transaction; -    int orientation; +    Vector<DisplayState> displayTransaction;      uint32_t flags = 0;      { // scope for the lock @@ -146,7 +146,11 @@ void Composer::closeGlobalTransactionImpl(bool synchronous) {          transaction = mStates;          mStates.clear(); -        orientation = mOrientation; +        // FIXME: this should be the displays transaction state here +        DisplayState item; +        item.orientation = mOrientation; +        displayTransaction.add(item); +          mOrientation = ISurfaceComposer::eOrientationUnchanged;          if (synchronous || mForceSynchronous) { @@ -155,7 +159,7 @@ void Composer::closeGlobalTransactionImpl(bool synchronous) {          mForceSynchronous = false;      } -   sm->setTransactionState(transaction, orientation, flags); +   sm->setTransactionState(transaction, displayTransaction, flags);  }  layer_state_t* Composer::getLayerStateLocked( |