diff options
author | Arun Kumar K.R <akumarkr@codeaurora.org> | 2012-08-17 11:24:37 -0700 |
---|---|---|
committer | Steve Kondik <shade@chemlab.org> | 2012-09-11 19:42:31 -0700 |
commit | 738f756b3605df49fc37d309444c562ad9601176 (patch) | |
tree | 4aa503aded1245d0fe27ac6bbc74142f2b1c58ca | |
parent | 5e76750f3a17fa118247df46d9e8e6cf0b7e591c (diff) | |
download | android_frameworks_native-738f756b3605df49fc37d309444c562ad9601176.tar.gz android_frameworks_native-738f756b3605df49fc37d309444c562ad9601176.tar.bz2 android_frameworks_native-738f756b3605df49fc37d309444c562ad9601176.zip |
SurfaceFlinger: update sourceTransform in hwc_layer_t
set the sourceTransform in hwc_layer_t to the bufferOrientation,
which will be used for setting the orientation on external display
CRs-fixed: 387357
Change-Id: I7ae6a818001eb41a9209dea166dc9232de182fe5
(cherry picked from commit 608db1fa7aa4dee3fc0359bd5686a74e2dfc9d40)
-rw-r--r-- | services/surfaceflinger/Layer.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/services/surfaceflinger/Layer.cpp b/services/surfaceflinger/Layer.cpp index 66aa564c7..84a9060d3 100644 --- a/services/surfaceflinger/Layer.cpp +++ b/services/surfaceflinger/Layer.cpp @@ -295,6 +295,9 @@ void Layer::setGeometry(hwc_layer_t* hwcl) */ const Transform bufferOrientation(mCurrentTransform); +#ifdef QCOM_HARDWARE + hwcl->sourceTransform = bufferOrientation.getOrientation(); +#endif const Transform tr(mTransform * bufferOrientation); // this gives us only the "orientation" component of the transform |