diff options
author | Chet Haase <chet@google.com> | 2013-04-12 14:11:53 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2013-04-12 14:11:54 +0000 |
commit | 5e5bed60d03b5556ada351b010ed14ae8f1515ae (patch) | |
tree | c712fe7ad7a894fdc93af51adad5ff58f50cf264 | |
parent | 453cfe0bfe06f3cbd87c8c42fa641756ab466b06 (diff) | |
parent | 91d25932b6651b20159a737da6140cf8a6aaaf08 (diff) | |
download | frameworks_native-5e5bed60d03b5556ada351b010ed14ae8f1515ae.zip frameworks_native-5e5bed60d03b5556ada351b010ed14ae8f1515ae.tar.gz frameworks_native-5e5bed60d03b5556ada351b010ed14ae8f1515ae.tar.bz2 |
Merge "DO NOT MERGE Make sure surfaces always have latest orientation info" into jb-mr2-dev
-rw-r--r-- | services/surfaceflinger/SurfaceFlinger.cpp | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/services/surfaceflinger/SurfaceFlinger.cpp b/services/surfaceflinger/SurfaceFlinger.cpp index 4bc0abd..dc29e48 100644 --- a/services/surfaceflinger/SurfaceFlinger.cpp +++ b/services/surfaceflinger/SurfaceFlinger.cpp @@ -1245,17 +1245,22 @@ void SurfaceFlinger::handleTransactionLocked(uint32_t transactionFlags) if (disp == NULL) { disp = hw; } else { - disp = getDefaultDisplayDevice(); + disp = NULL; break; } } } } - if (disp != NULL) { - // presumably this means this layer is using a layerStack - // that is not visible on any display - layer->updateTransformHint(disp); + if (disp == NULL) { + // NOTE: TEMPORARY FIX ONLY. Real fix should cause layers to + // redraw after transform hint changes. See bug 8508397. + + // could be null when this layer is using a layerStack + // that is not visible on any display. Also can occur at + // screen off/on times. + disp = getDefaultDisplayDevice(); } + layer->updateTransformHint(disp); } } |