diff options
author | Mathias Agopian <mathias@google.com> | 2011-07-21 14:50:29 -0700 |
---|---|---|
committer | Mathias Agopian <mathias@google.com> | 2011-07-21 14:50:29 -0700 |
commit | 45b63dd11c10927122e3eb3eae5ac702cb24f5b8 (patch) | |
tree | e9ced0732f120c5bf4d2d52a1221c1375e04e90e /services/surfaceflinger/SurfaceTextureLayer.cpp | |
parent | 0eecc27714d10b640bd8d40af8d1fb20aa3d29a0 (diff) | |
download | frameworks_base-45b63dd11c10927122e3eb3eae5ac702cb24f5b8.zip frameworks_base-45b63dd11c10927122e3eb3eae5ac702cb24f5b8.tar.gz frameworks_base-45b63dd11c10927122e3eb3eae5ac702cb24f5b8.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/surfaceflinger/SurfaceTextureLayer.cpp')
-rw-r--r-- | services/surfaceflinger/SurfaceTextureLayer.cpp | 4 |
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(); } |