mus: Fix screen tearing on Chromebook.
If you were running mus/mash on a Chromebook with two displays then there would be constant screen tearing. It turns out that the buffer for one display was sometimes ending up on the other display. There are two InProcessCommandBuffers, one for each display, that independently allocated IDs from CreateImageCHROMIUM starting at 1. This resulted in ID collisions. Make all InProcessCommandBuffers allocate IDs for CreateImageCHROMIUM from a global AtomicSequenceNumber to ensure there are no ID collisions. Bug: 735631 Cq-Include-Trybots: master.tryserver.chromium.android:android_optional_gpu_tests_rel;master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel Change-Id: I4501afe854041304b4860f0a2a67ca5c1a0e1df9 Reviewed-on: https://chromium-review.googlesource.com/621529 Commit-Queue: kylechar <kylechar@chromium.org> Reviewed-by:weiliangc <weiliangc@chromium.org> Reviewed-by:
Victor Miura <vmiura@chromium.org> Cr-Commit-Position: refs/heads/master@{#496458}
Showing
Please register or sign in to comment