summaryrefslogtreecommitdiffstats
path: root/services/surfaceflinger/LayerBase.h
diff options
context:
space:
mode:
authorMathias Agopian <mathias@google.com>2012-11-21 16:02:13 -0800
committerMathias Agopian <mathias@google.com>2012-11-21 16:03:52 -0800
commit8430095879d2fa6878e68f8f12da4e704815ac09 (patch)
tree9e390872accbfdfd1e6d16b9c9e9e537d024ae78 /services/surfaceflinger/LayerBase.h
parent764c197c6fc2bf10b038c33b320a4e95594d52d8 (diff)
downloadframeworks_native-8430095879d2fa6878e68f8f12da4e704815ac09.zip
frameworks_native-8430095879d2fa6878e68f8f12da4e704815ac09.tar.gz
frameworks_native-8430095879d2fa6878e68f8f12da4e704815ac09.tar.bz2
make transform hint multi-display aware
if a layer is not mirrored, we now use its display as the source for the transfrom hint calculation instead of always using the default (main) display. this change does two thing: 1) we make updateTransformHint take a DisplayDevice as a parameter instead of hard-coding the main display. 2) each time we do a transaction that could change the hint, we go through all layers and figure out which display should be used for their transform hint. Bug: 7599344 Change-Id: I9b04a95e6c372dd770bacf81d8ef6f8e31b87b83
Diffstat (limited to 'services/surfaceflinger/LayerBase.h')
-rw-r--r--services/surfaceflinger/LayerBase.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/services/surfaceflinger/LayerBase.h b/services/surfaceflinger/LayerBase.h
index 00c4ffe..4d5a5b0 100644
--- a/services/surfaceflinger/LayerBase.h
+++ b/services/surfaceflinger/LayerBase.h
@@ -246,7 +246,7 @@ public:
* Updates the SurfaceTexture's transform hint, for layers that have
* a SurfaceTexture.
*/
- virtual void updateTransformHint() const { }
+ virtual void updateTransformHint(const sp<const DisplayDevice>& hw) const { }
/** always call base class first */
virtual void dump(String8& result, char* scratch, size_t size) const;