summaryrefslogtreecommitdiff
path: root/services/surfaceflinger/Layer.cpp
diff options
context:
space:
mode:
author Mathias Agopian <mathias@google.com> 2010-12-08 17:24:52 -0800
committer Android (Google) Code Review <android-gerrit@google.com> 2010-12-08 17:24:52 -0800
commit2d54cd6637d3bf2eb55e2ff6a48c50fea80f796f (patch)
tree4beffa7aa5af4ab05e6dc68c56f7a736634af6bd /services/surfaceflinger/Layer.cpp
parentcd505aef7201ccd7f028ac99a2ecfed96bf474de (diff)
parent8128ee86dabb0515f3387826e38c2a8c84b01d7f (diff)
Merge "fix [3260137] Sometimes front-facing camera mirroring is wrong"
Diffstat (limited to 'services/surfaceflinger/Layer.cpp')
-rw-r--r--services/surfaceflinger/Layer.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/services/surfaceflinger/Layer.cpp b/services/surfaceflinger/Layer.cpp
index fe4379dc581e..85fd2c7f30d6 100644
--- a/services/surfaceflinger/Layer.cpp
+++ b/services/surfaceflinger/Layer.cpp
@@ -204,7 +204,8 @@ void Layer::setGeometry(hwc_layer_t* hwcl)
return;
}
- hwcl->transform = mOrientation;
+ Transform tr(Transform(mOrientation) * Transform(mBufferTransform));
+ hwcl->transform = tr.getOrientation();
if (needsBlending()) {
hwcl->blending = mPremultipliedAlpha ?