diff options
author | Mathias Agopian <mathias@google.com> | 2011-08-18 18:31:00 -0700 |
---|---|---|
committer | Mathias Agopian <mathias@google.com> | 2011-08-18 18:33:44 -0700 |
commit | d992db3827016388e8069f5793b031153d423501 (patch) | |
tree | d3500a1e394f13589343589f1c0d6111a381f68c /services/surfaceflinger/LayerBase.cpp | |
parent | 9509b9ce60d1919a3cf1bd7e66dd39183cb488a0 (diff) | |
download | frameworks_native-d992db3827016388e8069f5793b031153d423501.zip frameworks_native-d992db3827016388e8069f5793b031153d423501.tar.gz frameworks_native-d992db3827016388e8069f5793b031153d423501.tar.bz2 |
give the proper orientation to the h/w composer HAL
we were using the "orientation" value instead of the
real transform, which may contain arbitrary rotations for
instance, and in some case ended up with a final "orientation"
that looked valid, but wasn't.
this fixes a problem on devices with a h/w composer hal where
the rotation animation looked weird.
Change-Id: I4be8a2a1bde49c33456fcf5c8d87ab515c216763
Diffstat (limited to 'services/surfaceflinger/LayerBase.cpp')
-rw-r--r-- | services/surfaceflinger/LayerBase.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/services/surfaceflinger/LayerBase.cpp b/services/surfaceflinger/LayerBase.cpp index 7bf73d9..4cc245a 100644 --- a/services/surfaceflinger/LayerBase.cpp +++ b/services/surfaceflinger/LayerBase.cpp @@ -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(); |