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

Issue 1123623005: Tab Capture: AnimatedContentSampler subsampling and phase fixes in tests (Closed)

Created:
5 years, 7 months ago by miu
Modified:
5 years, 7 months ago
Reviewers:
hubbe
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

Tab Capture: AnimatedContentSampler subsampling and phase fixes in tests This change allows the client to specify a target sampling rate, aside from the maximum frame rate. When animated content is detected, an approprate subsampling of the relevant frames will be proposed. This is meant to be used for clients wishing to detect high-frame-rate content (e.g., 48 or 60 FPS), but only sample at traditional rates (e.g., 24 or 30 FPS). In testing this change, it became apparent that the current tests were highly sensitive to phase issues, and were erroneously generating discontinuous sequences of events in some scenarios. The tests have been fixed and additional testing for the new functionality added. BUG=156767 Committed: https://crrev.com/b6b84f4691f44c62ec0ee5f82355ad3d283d4012 Cr-Commit-Position: refs/heads/master@{#329550}

Patch Set 1 #

Total comments: 20

Patch Set 2 : More/better comments. #

Patch Set 3 : One more code comment expansion. #

Patch Set 4 : Addressed comments and expanded coverage of TargetsSamplingPeriod test. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+461 lines, -183 lines) Patch
M content/browser/media/capture/animated_content_sampler.h View 1 4 chunks +47 lines, -17 lines 0 comments Download
M content/browser/media/capture/animated_content_sampler.cc View 1 2 3 2 chunks +124 lines, -53 lines 0 comments Download
M content/browser/media/capture/animated_content_sampler_unittest.cc View 1 2 3 19 chunks +290 lines, -113 lines 0 comments Download

Messages

Total messages: 11 (2 generated)
miu
hubbe: PTAL.
5 years, 7 months ago (2015-05-05 01:04:15 UTC) #2
hubbe
https://codereview.chromium.org/1123623005/diff/1/content/browser/media/capture/animated_content_sampler.cc File content/browser/media/capture/animated_content_sampler.cc (right): https://codereview.chromium.org/1123623005/diff/1/content/browser/media/capture/animated_content_sampler.cc#newcode71 content/browser/media/capture/animated_content_sampler.cc:71: sampling_period_ = ComputeSamplingPeriod(detected_period_, Do we need to do this ...
5 years, 7 months ago (2015-05-06 19:53:18 UTC) #3
miu
Addressed your comments. Granted, there's a lot going on in the math/heuristics in this class, ...
5 years, 7 months ago (2015-05-09 20:57:39 UTC) #4
hubbe
https://codereview.chromium.org/1123623005/diff/1/content/browser/media/capture/animated_content_sampler.cc File content/browser/media/capture/animated_content_sampler.cc (right): https://codereview.chromium.org/1123623005/diff/1/content/browser/media/capture/animated_content_sampler.cc#newcode109 content/browser/media/capture/animated_content_sampler.cc:109: if (token_bucket_ >= sampling_period_) { I think you're right. ...
5 years, 7 months ago (2015-05-12 19:29:03 UTC) #5
miu
https://codereview.chromium.org/1123623005/diff/1/content/browser/media/capture/animated_content_sampler.cc File content/browser/media/capture/animated_content_sampler.cc (right): https://codereview.chromium.org/1123623005/diff/1/content/browser/media/capture/animated_content_sampler.cc#newcode109 content/browser/media/capture/animated_content_sampler.cc:109: if (token_bucket_ >= sampling_period_) { On 2015/05/12 19:29:03, hubbe ...
5 years, 7 months ago (2015-05-13 00:01:01 UTC) #6
hubbe
lgtm
5 years, 7 months ago (2015-05-13 00:03:04 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1123623005/60001
5 years, 7 months ago (2015-05-13 00:05:52 UTC) #9
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 7 months ago (2015-05-13 01:06:37 UTC) #10
commit-bot: I haz the power
5 years, 7 months ago (2015-05-13 01:07:26 UTC) #11
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/b6b84f4691f44c62ec0ee5f82355ad3d283d4012
Cr-Commit-Position: refs/heads/master@{#329550}

Powered by Google App Engine
This is Rietveld 408576698