summaryrefslogtreecommitdiffstats
path: root/services/surfaceflinger
diff options
context:
space:
mode:
authorMathias Agopian <mathias@google.com>2010-12-08 17:23:18 -0800
committerMathias Agopian <mathias@google.com>2010-12-08 17:23:18 -0800
commit8128ee86dabb0515f3387826e38c2a8c84b01d7f (patch)
treebaeb939a405632962bb5b9cd9d299f844d31f897 /services/surfaceflinger
parent8f8f594b01b0d0185364b04e7b37723db65b3a1d (diff)
downloadframeworks_base-8128ee86dabb0515f3387826e38c2a8c84b01d7f.zip
frameworks_base-8128ee86dabb0515f3387826e38c2a8c84b01d7f.tar.gz
frameworks_base-8128ee86dabb0515f3387826e38c2a8c84b01d7f.tar.bz2
fix [3260137] Sometimes front-facing camera mirroring is wrong
make sure to take the buffer's orientation into account. Change-Id: I9fef89e66368ad2dec1cb8c7b77ac2b3b4858efb
Diffstat (limited to 'services/surfaceflinger')
-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 fe4379d..85fd2c7 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 ?