Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(117)

Issue 1256183003: Fullscreen tab capture: Prefer standard resolutions (Closed)

Created:
5 years, 4 months ago by miu
Modified:
5 years, 4 months ago
Reviewers:
Kevin Marshall, Kevin M
CC:
chromium-reviews, feature-media-reviews_chromium.org, darin-cc_chromium.org, jam, miu+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fullscreen tab capture: Prefer standard resolutions While testing the use of auto-throttling capture with fullscreen content, it became clear that using the user's screen size as a maximum resulted in poor-quality scaling situations. For example, logic which fits the 16:9 content into a screen with 768 vertical lines resulted in an odd 1365x768 capture resolution that looked a bit blurry. This change adds logic to detect when a common video aspect ratio is being used, such as 16:9, and rounds down to a standard resolution with even dimensions. For example, 1365x768 is rounded down to 1280x720. BUG=156767 Committed: https://crrev.com/e29bedb115b69f5c647ae7bcdcd72cc2435b2060 Cr-Commit-Position: refs/heads/master@{#341220}

Patch Set 1 : #

Total comments: 4

Patch Set 2 : Only applies to variable-resolution use cases, and add unit tests. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+133 lines, -0 lines) Patch
M content/browser/media/capture/web_contents_video_capture_device.cc View 1 1 chunk +37 lines, -0 lines 0 comments Download
M content/browser/media/capture/web_contents_video_capture_device_unittest.cc View 1 2 chunks +96 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (4 generated)
miu
marshallk: PTAL.
5 years, 4 months ago (2015-07-29 23:47:50 UTC) #3
Kevin M
https://codereview.chromium.org/1256183003/diff/20001/content/browser/media/capture/web_contents_video_capture_device.cc File content/browser/media/capture/web_contents_video_capture_device.cc (right): https://codereview.chromium.org/1256183003/diff/20001/content/browser/media/capture/web_contents_video_capture_device.cc#newcode651 content/browser/media/capture/web_contents_video_capture_device.cc:651: const auto HasIntendedAspectRatio = [](const gfx::Size& size, int x, ...
5 years, 4 months ago (2015-07-30 00:23:06 UTC) #5
miu
PTAL. (Also, please make sure you're using your @chromium.org account when you ell-gee-tee-em.) https://codereview.chromium.org/1256183003/diff/20001/content/browser/media/capture/web_contents_video_capture_device.cc File ...
5 years, 4 months ago (2015-07-30 20:22:54 UTC) #6
Kevin M
lgtm
5 years, 4 months ago (2015-07-30 20:33:19 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1256183003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1256183003/40001
5 years, 4 months ago (2015-07-30 21:26:23 UTC) #9
commit-bot: I haz the power
Committed patchset #2 (id:40001)
5 years, 4 months ago (2015-07-30 23:13:39 UTC) #10
commit-bot: I haz the power
5 years, 4 months ago (2015-07-30 23:14:15 UTC) #11
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/e29bedb115b69f5c647ae7bcdcd72cc2435b2060
Cr-Commit-Position: refs/heads/master@{#341220}

Powered by Google App Engine
This is Rietveld 408576698