Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 27ff54db authored by Chet Haase's avatar Chet Haase Committed by Android Git Automerger
Browse files

am 5e5bed60: Merge "DO NOT MERGE Make sure surfaces always have latest...

am 5e5bed60: Merge "DO NOT MERGE Make sure surfaces always have latest orientation info" into jb-mr2-dev

* commit '5e5bed60':
  DO NOT MERGE Make sure surfaces always have latest orientation info
parents 5297a0a2 5e5bed60
Loading
Loading
Loading
Loading
+10 −5
Original line number Diff line number Diff line
@@ -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);
        }
    }