Loading services/surfaceflinger/Layer.cpp +2 −3 Original line number Diff line number Diff line Loading @@ -196,13 +196,12 @@ void Layer::setGeometry(hwc_layer_t* hwcl) * 1) buffer orientation/flip/mirror * 2) state transformation (window manager) * 3) layer orientation (screen orientation) * mOrientation is already the composition of (2) and (3) * mTransform is already the composition of (2) and (3) * (NOTE: the matrices are multiplied in reverse order) */ const Transform bufferOrientation(mCurrentTransform); const Transform layerOrientation(mOrientation); const Transform tr(layerOrientation * bufferOrientation); const Transform tr(mTransform * bufferOrientation); // this gives us only the "orientation" component of the transform const uint32_t finalTransform = tr.getOrientation(); Loading services/surfaceflinger/LayerBase.cpp +1 −0 Original line number Diff line number Diff line Loading @@ -257,6 +257,7 @@ void LayerBase::validateVisibility(const Transform& planeTransform) // cache a few things... mOrientation = tr.getOrientation(); mTransform = tr; mTransformedBounds = tr.makeBounds(w, h); mLeft = tr.tx(); mTop = tr.ty(); Loading services/surfaceflinger/LayerBase.h +1 −0 Original line number Diff line number Diff line Loading @@ -247,6 +247,7 @@ private: protected: // cached during validateVisibility() int32_t mOrientation; Transform mTransform; GLfloat mVertices[4][2]; Rect mTransformedBounds; int mLeft; Loading Loading
services/surfaceflinger/Layer.cpp +2 −3 Original line number Diff line number Diff line Loading @@ -196,13 +196,12 @@ void Layer::setGeometry(hwc_layer_t* hwcl) * 1) buffer orientation/flip/mirror * 2) state transformation (window manager) * 3) layer orientation (screen orientation) * mOrientation is already the composition of (2) and (3) * mTransform is already the composition of (2) and (3) * (NOTE: the matrices are multiplied in reverse order) */ const Transform bufferOrientation(mCurrentTransform); const Transform layerOrientation(mOrientation); const Transform tr(layerOrientation * bufferOrientation); const Transform tr(mTransform * bufferOrientation); // this gives us only the "orientation" component of the transform const uint32_t finalTransform = tr.getOrientation(); Loading
services/surfaceflinger/LayerBase.cpp +1 −0 Original line number Diff line number Diff line Loading @@ -257,6 +257,7 @@ void LayerBase::validateVisibility(const Transform& planeTransform) // cache a few things... mOrientation = tr.getOrientation(); mTransform = tr; mTransformedBounds = tr.makeBounds(w, h); mLeft = tr.tx(); mTop = tr.ty(); Loading
services/surfaceflinger/LayerBase.h +1 −0 Original line number Diff line number Diff line Loading @@ -247,6 +247,7 @@ private: protected: // cached during validateVisibility() int32_t mOrientation; Transform mTransform; GLfloat mVertices[4][2]; Rect mTransformedBounds; int mLeft; Loading