summaryrefslogtreecommitdiffstats
path: root/services/surfaceflinger/SurfaceTextureLayer.cpp
diff options
context:
space:
mode:
authorMathias Agopian <mathias@google.com>2011-08-23 18:03:18 -0700
committerMathias Agopian <mathias@google.com>2011-08-23 21:10:35 -0700
commita45836466c301d49d8df286b5317dfa99cb83b70 (patch)
tree137afac7d7486ba2dfc2e1091e2ba2f58a525b6e /services/surfaceflinger/SurfaceTextureLayer.cpp
parent53331da007b56e0cb4201728de99c8c29bcfaa9a (diff)
downloadframeworks_native-a45836466c301d49d8df286b5317dfa99cb83b70.zip
frameworks_native-a45836466c301d49d8df286b5317dfa99cb83b70.tar.gz
frameworks_native-a45836466c301d49d8df286b5317dfa99cb83b70.tar.bz2
Add a debug option to turn the "transformation hint" off
transformation hint is disabled with: adb shell service call SurfaceFlinger 1009 i32 1 Change-Id: I9aafe6f280f88ce41569ed69a06dc522b10e3a88
Diffstat (limited to 'services/surfaceflinger/SurfaceTextureLayer.cpp')
-rw-r--r--services/surfaceflinger/SurfaceTextureLayer.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/services/surfaceflinger/SurfaceTextureLayer.cpp b/services/surfaceflinger/SurfaceTextureLayer.cpp
index 79cd0c3..4390ca1 100644
--- a/services/surfaceflinger/SurfaceTextureLayer.cpp
+++ b/services/surfaceflinger/SurfaceTextureLayer.cpp
@@ -57,16 +57,10 @@ status_t SurfaceTextureLayer::queueBuffer(int buf, int64_t timestamp,
status_t res = SurfaceTexture::queueBuffer(buf, timestamp,
outWidth, outHeight, outTransform);
-
sp<Layer> layer(mLayer.promote());
if (layer != NULL) {
- uint32_t orientation = layer->getOrientation();
- if (orientation & Transform::ROT_INVALID) {
- orientation = 0;
- }
- *outTransform = orientation;
+ *outTransform = layer->getTransformHint();
}
-
return res;
}