forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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}
- Loading branch information
1 parent
ca75eb1
commit db73fae
Showing
3 changed files
with
61 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters