summaryrefslogtreecommitdiffstats
path: root/libs
diff options
context:
space:
mode:
authorBumble-Bee <bigbeeshane@gmail.com>2012-11-29 16:23:07 +0000
committerAaron Echols <atechols@gmail.com>2012-12-14 14:46:57 -0700
commitd262585108ecede466678a84ddb3cb190935b12e (patch)
tree336a0c392f98e26c8d6e4b9fb4cbf5f6543e63ce /libs
parent18aefe944472f2def2ace61a46f5002773413b43 (diff)
downloadframeworks_native-d262585108ecede466678a84ddb3cb190935b12e.zip
frameworks_native-d262585108ecede466678a84ddb3cb190935b12e.tar.gz
frameworks_native-d262585108ecede466678a84ddb3cb190935b12e.tar.bz2
Add setOrientation back
this is needed for some tegra ICS and JB_MR0 prebuilts
Diffstat (limited to 'libs')
-rw-r--r--libs/gui/SurfaceComposerClient.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/libs/gui/SurfaceComposerClient.cpp b/libs/gui/SurfaceComposerClient.cpp
index 6ba933b..0301f72 100644
--- a/libs/gui/SurfaceComposerClient.cpp
+++ b/libs/gui/SurfaceComposerClient.cpp
@@ -393,6 +393,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()
@@ -571,6 +580,11 @@ status_t SurfaceComposerClient::setMatrix(SurfaceID id, float dsdx, float dtdx,
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,