[Paint Preview] Fix simultaneous scaling + scrolling
If scaling + scrolling happened in parallel there were some issues with double-buffering. This CL fixes that by - Early exiting PlayerFrameMediator#updateVisuals if in the middle of a scaling. - "Locking" the visible state to prevent new bitmaps from being requested. This CL also improves the logic for tracking the first set of bitmaps to prevent a scenario where swapping never happens. Bug: 1099722 Change-Id: Ibacffadf5690b69fb79dd872562fd84da175780a Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2307440Reviewed-by:Mehran Mahmoudi <mahmoudi@chromium.org> Commit-Queue: Calder Kitagawa <ckitagawa@chromium.org> Cr-Commit-Position: refs/heads/master@{#790061}
Showing
Please register or sign in to comment