Fix mirror mode restoring after resume
Background: Upon suspend, DisplayManager::SetSoftwareMirroring(true) will be called to clear current mirroring source and destination displays. But mirror mode is not enabled because DisplayManager::OnNativeDisplaysChanged() will receive empty display info and stop before reconfiguration. Later upon resume, mirror mode will not be restored because the mirror info is cleared. Changes: Prevent DisplayManager::SetSoftwareMirroring(true) from clearing the mirroring source and destination displays as they will be cleared later in DisplayManager::OnNativeDisplaysChanged(). Bug: 797016 Change-Id: I3b987e5bc13a72313f5273262e96ed26b7ca347c Reviewed-on: https://chromium-review.googlesource.com/857548 Commit-Queue: Weidong Guo <weidongg@chromium.org> Reviewed-by:Mitsuru Oshima <oshima@chromium.org> Cr-Commit-Position: refs/heads/master@{#532505}
Showing
Please register or sign in to comment