Crash fix for desktop capture size calculations, and some minor things.
When stress-testing desktop resize (by running a CrOS Ash desktop in a window), a problem with the capture frame size calculations was revealed: The max frame size was being updated for each change in desktop size. This meant that once width or height were reduced, they could never be increased again. When the width or height were reduced to zero, Chrome would crash. This change fixes the size calculation (the max size is made constant from construction), adds a few extra sanity-checks to prevent crashes on OOM or zero frame sizes, and also adds re-scaling of the rendered mouse cursor bitmap whenever the desktop size has changed. BUG=462799 TEST=Resized CrOS Ash-desktop-in-a-window on my local dev workstation to confirm crash is resolved. Review URL: https://codereview.chromium.org/965123002 Cr-Commit-Position: refs/heads/master@{#318958}
Showing
Please register or sign in to comment