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

Issue 2814063002: Update constraints algorithm for screen capture. (Closed)

Created:
3 years, 8 months ago by Guido Urdaneta
Modified:
3 years, 8 months ago
Reviewers:
Max Morin
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, imcheng+watch_chromium.org, feature-media-reviews_chromium.org, posciak+watch_chromium.org, chfremer+watch_chromium.org, jam, avayvod+watch_chromium.org, darin-cc_chromium.org, jasonroberts+watch_google.com, xjz+watch_chromium.org, isheriff+watch_chromium.org, miu+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Update constraints algorithm for screen capture. If explicit frame rate is given, use that as default. This is more compatible with existing tests and applications and is still spec compliant. This fixes a regression. Use media::limits::kMaxDimension/2 (16383) as maximum screencast dimension. The older value could produce results that exceed the maximum canvas size, which is 16384 x 16384 - 1. Properly use explicit maximum dimensions and frame rate as default in screen capture. An older fix for dimensions had a bug when the maximum allowed values coincided with explicitly given max constraints. BUG=657733, 710187 Review-Url: https://codereview.chromium.org/2814063002 Cr-Commit-Position: refs/heads/master@{#464068} Committed: https://chromium.googlesource.com/chromium/src/+/02fcf46036643c6c896c059161f2a2b6aa8e6c6b

Patch Set 1 #

Patch Set 2 : reduce max dimension #

Total comments: 2

Patch Set 3 : maxmorin's comments and minor rearrangement of constants #

Unified diffs Side-by-side diffs Delta from patch set Stats (+238 lines, -99 lines) Patch
M content/renderer/media/media_stream_constraints_util_video_content.h View 1 2 1 chunk +5 lines, -2 lines 0 comments Download
M content/renderer/media/media_stream_constraints_util_video_content.cc View 1 2 9 chunks +119 lines, -55 lines 0 comments Download
M content/renderer/media/media_stream_constraints_util_video_content_unittest.cc View 1 15 chunks +114 lines, -42 lines 0 comments Download

Messages

Total messages: 31 (21 generated)
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2814063002/1
3 years, 8 months ago (2017-04-12 11:02:42 UTC) #2
commit-bot: I haz the power
No L-G-T-M from a valid reviewer yet. CQ run can only be started once the ...
3 years, 8 months ago (2017-04-12 11:02:44 UTC) #4
Guido Urdaneta
Hi, PTAL
3 years, 8 months ago (2017-04-12 12:50:48 UTC) #14
Guido Urdaneta
Max: can you take a look?
3 years, 8 months ago (2017-04-12 15:09:57 UTC) #18
Max Morin
lgtm https://codereview.chromium.org/2814063002/diff/20001/content/renderer/media/media_stream_constraints_util_video_content.cc File content/renderer/media/media_stream_constraints_util_video_content.cc (right): https://codereview.chromium.org/2814063002/diff/20001/content/renderer/media/media_stream_constraints_util_video_content.cc#newcode28 content/renderer/media/media_stream_constraints_util_video_content.cc:28: // than media::limits::kMaxCanvas. Should there be a static_assert ...
3 years, 8 months ago (2017-04-12 15:29:38 UTC) #19
Guido Urdaneta
Thanks for the review! https://codereview.chromium.org/2814063002/diff/20001/content/renderer/media/media_stream_constraints_util_video_content.cc File content/renderer/media/media_stream_constraints_util_video_content.cc (right): https://codereview.chromium.org/2814063002/diff/20001/content/renderer/media/media_stream_constraints_util_video_content.cc#newcode28 content/renderer/media/media_stream_constraints_util_video_content.cc:28: // than media::limits::kMaxCanvas. On 2017/04/12 ...
3 years, 8 months ago (2017-04-12 15:53:28 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2814063002/40001
3 years, 8 months ago (2017-04-12 15:54:05 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/428130)
3 years, 8 months ago (2017-04-12 16:41:48 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2814063002/40001
3 years, 8 months ago (2017-04-12 16:53:12 UTC) #27
commit-bot: I haz the power
3 years, 8 months ago (2017-04-12 18:13:55 UTC) #31
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/02fcf46036643c6c896c059161f2...

Powered by Google App Engine
This is Rietveld 408576698