From 8b33f032327f8de0dcc0e6d0d43ed80f834b51f6 Mon Sep 17 00:00:00 2001 From: Mathias Agopian Date: Tue, 24 Jul 2012 20:43:54 -0700 Subject: 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 --- libs/gui/SurfaceComposerClient.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'libs/gui/SurfaceComposerClient.cpp') 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 sm(getComposerService()); Vector transaction; - int orientation; + Vector 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( -- cgit v1.2.3-59-g8ed1b