Browse files

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)
  • Loading branch information...
Arun Kumar K.R authored and Whitehawkx committed Aug 17, 2012
1 parent ef85ab4 commit 0d04b8a639282f729d9aa2af09bb87cbe01b0b0f
Showing with 3 additions and 0 deletions.
  1. +3 −0 services/surfaceflinger/Layer.cpp
@@ -295,6 +295,9 @@ void Layer::setGeometry(hwc_layer_t* hwcl)
const Transform bufferOrientation(mCurrentTransform);
+ hwcl->sourceTransform = bufferOrientation.getOrientation();
const Transform tr(mTransform * bufferOrientation);
// this gives us only the "orientation" component of the transform

0 comments on commit 0d04b8a

Please sign in to comment.