summaryrefslogtreecommitdiffstats
path: root/services
diff options
context:
space:
mode:
authorMathias Agopian <mathias@google.com>2011-07-21 14:50:29 -0700
committerMathias Agopian <mathias@google.com>2011-07-21 14:50:29 -0700
commitbb66c9b5a9c16dee93559eb738746a2d0a9b2db3 (patch)
treeb823d8438f697ac04ca8859627bd00bd7e3c9e30 /services
parentbbb29412b7244a57feaab6cdbb5e2ee26a63dacf (diff)
downloadframeworks_native-bb66c9b5a9c16dee93559eb738746a2d0a9b2db3.zip
frameworks_native-bb66c9b5a9c16dee93559eb738746a2d0a9b2db3.tar.gz
frameworks_native-bb66c9b5a9c16dee93559eb738746a2d0a9b2db3.tar.bz2
Fix a few issues with NATIVE_WINDOW_TRANSFORM_HINT
- fixed uninitialized variable - set hint to indentity when transform is too complex - make sure FrameBufferNativeWindow doesn't fail on needed perform commands Bug: 4487161 Change-Id: I7cb2b0869b72404732eca7cb2d145ff669e2ed9b
Diffstat (limited to 'services')
-rw-r--r--services/surfaceflinger/SurfaceTextureLayer.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/services/surfaceflinger/SurfaceTextureLayer.cpp b/services/surfaceflinger/SurfaceTextureLayer.cpp
index 11f61cc..40659d4 100644
--- a/services/surfaceflinger/SurfaceTextureLayer.cpp
+++ b/services/surfaceflinger/SurfaceTextureLayer.cpp
@@ -60,6 +60,10 @@ status_t SurfaceTextureLayer::queueBuffer(int buf, int64_t timestamp,
sp<Layer> layer(mLayer.promote());
if (layer != NULL) {
+ uint32_t orientation = layer->getOrientation();
+ if (orientation & Transform::ROT_INVALID) {
+ orientation = 0;
+ }
*outTransform = layer->getOrientation();
}