CCA: Change the rule for sorting preview resolutions
This CL changes the preview resolution sorting order from: 1. Resolution which is slightly larger than the screen size 2. The larger, the better To: (Given |Rc| is the capture resolution and |Rs| is the screen size, and |Rp| means the preview resolution) If |Rc| <= |Rs|: 1. All |Rp| <= |Rc|, and the larger, the better. 2. All |Rp| > |Rc|, and the smaller, the better. If |Rc| > |Rs|: 1. All |Rp| where |Rs| <= |Rp| <= |Rc|, and the smaller, the better. 2. All |Rp| < |Rs|, and the larger, the better. 3. All |Rp| > |Rc|, and the smaller, the better. Bug: 1069440 Test: Manually checks the order in CCA Change-Id: I7a3a9160e4eac560b060da81fe6657467c476af7 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2145375 Commit-Queue: Wei Lee <wtlee@chromium.org> Reviewed-by:Shik Chen <shik@chromium.org> Reviewed-by:
Kuo Jen Wei <inker@chromium.org> Cr-Commit-Position: refs/heads/master@{#759184}
Showing
Please register or sign in to comment