Prevent upscaling in desktop capture.
The previous CL landed (r238359) is missing a size check to prevent upscaling in desktop capture. The correct logic should be to use native resolution if both maxWidth and maxHeight are no smaller than source dimensions, and to compute letterbox region if otherwise. BUG=324923 TEST=trybot, Chrome OS feedback screen captures in native resolution R=sergeyu@chromium.org TBR=wjia@chromium.org Review URL: https://codereview.chromium.org/103253003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@238514 0039d316-1c4b-4281-b951-d872f2087c98
Showing
Please register or sign in to comment