Loading include/gui/SurfaceComposerClient.h +2 −0 Original line number Diff line number Diff line Loading @@ -113,6 +113,8 @@ public: //! Close a composer transaction on all active SurfaceComposerClients. static void closeGlobalTransaction(bool synchronous = false); static int setOrientation(int32_t dpy, int orientation, uint32_t flags); //! Flag the currently open transaction as an animation transaction. static void setAnimationTransaction(); Loading libs/gui/SurfaceComposerClient.cpp +14 −0 Original line number Diff line number Diff line Loading @@ -421,6 +421,15 @@ void Composer::setDisplayProjection(const sp<IBinder>& token, mForceSynchronous = true; // TODO: do we actually still need this? } status_t Composer::setOrientation(int orientation) { sp<ISurfaceComposer> sm(ComposerService::getComposerService()); sp<IBinder> token(sm->getBuiltInDisplay(ISurfaceComposer::eDisplayIdMain)); DisplayState& s(getDisplayStateLocked(token)); s.orientation = orientation; mForceSynchronous = true; // TODO: do we actually still need this? return NO_ERROR; } // --------------------------------------------------------------------------- SurfaceComposerClient::SurfaceComposerClient() Loading Loading @@ -605,6 +614,11 @@ status_t SurfaceComposerClient::setMatrix(const sp<IBinder>& id, float dsdx, flo return getComposer().setMatrix(this, id, dsdx, dtdx, dsdy, dtdy); } status_t SurfaceComposerClient::setOrientation(int32_t dpy, int orientation, uint32_t flags) { return Composer::getInstance().setOrientation(orientation); } // ---------------------------------------------------------------------------- void SurfaceComposerClient::setDisplaySurface(const sp<IBinder>& token, Loading Loading
include/gui/SurfaceComposerClient.h +2 −0 Original line number Diff line number Diff line Loading @@ -113,6 +113,8 @@ public: //! Close a composer transaction on all active SurfaceComposerClients. static void closeGlobalTransaction(bool synchronous = false); static int setOrientation(int32_t dpy, int orientation, uint32_t flags); //! Flag the currently open transaction as an animation transaction. static void setAnimationTransaction(); Loading
libs/gui/SurfaceComposerClient.cpp +14 −0 Original line number Diff line number Diff line Loading @@ -421,6 +421,15 @@ void Composer::setDisplayProjection(const sp<IBinder>& token, mForceSynchronous = true; // TODO: do we actually still need this? } status_t Composer::setOrientation(int orientation) { sp<ISurfaceComposer> sm(ComposerService::getComposerService()); sp<IBinder> token(sm->getBuiltInDisplay(ISurfaceComposer::eDisplayIdMain)); DisplayState& s(getDisplayStateLocked(token)); s.orientation = orientation; mForceSynchronous = true; // TODO: do we actually still need this? return NO_ERROR; } // --------------------------------------------------------------------------- SurfaceComposerClient::SurfaceComposerClient() Loading Loading @@ -605,6 +614,11 @@ status_t SurfaceComposerClient::setMatrix(const sp<IBinder>& id, float dsdx, flo return getComposer().setMatrix(this, id, dsdx, dtdx, dsdy, dtdy); } status_t SurfaceComposerClient::setOrientation(int32_t dpy, int orientation, uint32_t flags) { return Composer::getInstance().setOrientation(orientation); } // ---------------------------------------------------------------------------- void SurfaceComposerClient::setDisplaySurface(const sp<IBinder>& token, Loading