DescriptionCrash 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.
Committed: https://crrev.com/db73faeca6f1a3a6cb2923afc2e0bc3ea995aee7
Cr-Commit-Position: refs/heads/master@{#318958}
Patch Set 1 #Patch Set 2 : rebase #
Messages
Total messages: 12 (5 generated)
|