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

Issue 2628313002: [Media] Plumb a feature parameter for the background video keyframe distance. (Closed)

Created:
3 years, 11 months ago by whywhat
Modified:
3 years, 11 months ago
CC:
apacible+watch_chromium.org, chromium-reviews, creis+watch_chromium.org, darin-cc_chromium.org, erickung+watch_chromium.org, feature-media-reviews_chromium.org, jam, miu+watch_chromium.org, mlamouri+watch-content_chromium.org, nasko+codewatch_chromium.org, xjz+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Video] Set the max keyframe distance for background optimization via FieldTrials. Get a field trial variations param as the time in milliseconds. Pass it from RenderViewHostImpl in the browser process to the renderer's RenderFrameImpl via WebPreferences. Set the value in WebMediaPlayerParams when WebMediaPlayerImpl is created. BUG=663999 TEST=manually with chrome --enable-features="BackgroundVideoTrackOptimization<Study" --force-fieldtrials=Study/Group1 --force-fieldtrial-params=Study.Group1:max_keyframe_distance_ms/1000 Review-Url: https://codereview.chromium.org/2628313002 Cr-Commit-Position: refs/heads/master@{#444946} Committed: https://chromium.googlesource.com/chromium/src/+/590011e3f3b68faf7f68592b3b931181e0cb4672

Patch Set 1 #

Total comments: 8

Patch Set 2 : Addressed comments #

Patch Set 3 : Set the experiment value via params #

Patch Set 4 : Fix compile #

Patch Set 5 : Fixed unittests #

Patch Set 6 : Removed unnecessary changes. #

Patch Set 7 : Changed the param to milliseconds #

Unified diffs Side-by-side diffs Delta from patch set Stats (+43 lines, -9 lines) Patch
M content/browser/renderer_host/render_view_host_impl.cc View 1 2 3 4 5 6 1 chunk +9 lines, -0 lines 0 comments Download
M content/public/common/common_param_traits_macros.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M content/public/common/web_preferences.h View 1 2 chunks +8 lines, -0 lines 0 comments Download
M content/public/common/web_preferences.cc View 1 1 chunk +2 lines, -0 lines 0 comments Download
M content/renderer/render_frame_impl.cc View 1 2 3 4 5 6 1 chunk +4 lines, -1 line 0 comments Download
M media/blink/webmediaplayer_impl.h View 1 2 3 4 5 6 1 chunk +1 line, -3 lines 0 comments Download
M media/blink/webmediaplayer_impl.cc View 1 2 3 4 5 6 1 chunk +3 lines, -1 line 0 comments Download
M media/blink/webmediaplayer_impl_unittest.cc View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M media/blink/webmediaplayer_params.h View 1 2 3 4 chunks +8 lines, -1 line 0 comments Download
M media/blink/webmediaplayer_params.cc View 1 2 3 2 chunks +5 lines, -2 lines 0 comments Download

Messages

Total messages: 50 (26 generated)
whywhat
Dale: media/ Nasko: content/ Alexei: to check I'm using variations correctly and for testing (manual ...
3 years, 11 months ago (2017-01-13 02:22:18 UTC) #4
Alexei Svitkine (slow)
code lgtm In the CL description, usually the BUG & TEST lines go last. Re: ...
3 years, 11 months ago (2017-01-13 16:16:20 UTC) #7
nasko
The code itself looks good. However, it will be best if variations are actually available ...
3 years, 11 months ago (2017-01-13 16:30:04 UTC) #8
DaleCurtis
https://codereview.chromium.org/2628313002/diff/1/content/public/common/web_preferences.h File content/public/common/web_preferences.h (right): https://codereview.chromium.org/2628313002/diff/1/content/public/common/web_preferences.h#newcode269 content/public/common/web_preferences.h:269: int max_keyframe_distance_to_disable_background_video_sec; base::TimeDelta? https://codereview.chromium.org/2628313002/diff/1/content/renderer/render_frame_impl.cc File content/renderer/render_frame_impl.cc (right): https://codereview.chromium.org/2628313002/diff/1/content/renderer/render_frame_impl.cc#newcode2910 content/renderer/render_frame_impl.cc:2910: ...
3 years, 11 months ago (2017-01-13 20:34:13 UTC) #9
Alexei Svitkine (slow)
Re: variations params in renderer processes: This is coming and is on my OKRs this ...
3 years, 11 months ago (2017-01-13 20:41:44 UTC) #10
whywhat
Thanks, will look into tests. Yeah, I checked with Alexei before hand and it seems ...
3 years, 11 months ago (2017-01-13 21:10:54 UTC) #11
Alexei Svitkine (slow)
Just filed one here: crbug.com/681160 On Fri, Jan 13, 2017 at 4:10 PM, <avayvod@chromium.org> wrote: ...
3 years, 11 months ago (2017-01-13 21:17:22 UTC) #12
whywhat
Addressed comments
3 years, 11 months ago (2017-01-13 22:23:41 UTC) #14
DaleCurtis
https://codereview.chromium.org/2628313002/diff/1/content/renderer/render_frame_impl.cc File content/renderer/render_frame_impl.cc (right): https://codereview.chromium.org/2628313002/diff/1/content/renderer/render_frame_impl.cc#newcode2910 content/renderer/render_frame_impl.cc:2910: media_player->SetMaxKeyframeDistanceToDisableBackgroundVideo( On 2017/01/13 at 21:10:54, whywhat wrote: > On ...
3 years, 11 months ago (2017-01-14 00:28:04 UTC) #15
whywhat
https://codereview.chromium.org/2628313002/diff/1/content/renderer/render_frame_impl.cc File content/renderer/render_frame_impl.cc (right): https://codereview.chromium.org/2628313002/diff/1/content/renderer/render_frame_impl.cc#newcode2910 content/renderer/render_frame_impl.cc:2910: media_player->SetMaxKeyframeDistanceToDisableBackgroundVideo( On 2017/01/14 at 00:28:04, DaleCurtis wrote: > On ...
3 years, 11 months ago (2017-01-18 19:42:32 UTC) #16
whywhat
Set the experiment value via params
3 years, 11 months ago (2017-01-18 19:48:38 UTC) #17
whywhat
Fix compile
3 years, 11 months ago (2017-01-18 20:43:06 UTC) #18
whywhat
Fixed unittests
3 years, 11 months ago (2017-01-18 22:30:50 UTC) #23
whywhat
Changed to WMPParams. PTAL.
3 years, 11 months ago (2017-01-18 22:31:51 UTC) #25
whywhat
Removed unnecessary changes.
3 years, 11 months ago (2017-01-19 00:17:43 UTC) #29
DaleCurtis
lgtm
3 years, 11 months ago (2017-01-19 17:33:13 UTC) #34
whywhat
+dcheng for IPC +jam for the remaining OWNERS nasko seems to be OOO today
3 years, 11 months ago (2017-01-19 18:22:49 UTC) #36
whywhat
3 years, 11 months ago (2017-01-19 20:46:02 UTC) #38
Avi (use Gerrit)
lgtm stamp
3 years, 11 months ago (2017-01-19 20:58:52 UTC) #39
Robert Sesek
lgtm
3 years, 11 months ago (2017-01-19 21:11:43 UTC) #40
whywhat
Changed the param to milliseconds
3 years, 11 months ago (2017-01-19 22:14:22 UTC) #41
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/2628313002/120001
3 years, 11 months ago (2017-01-19 22:19:31 UTC) #45
commit-bot: I haz the power
Committed patchset #7 (id:120001) as https://chromium.googlesource.com/chromium/src/+/590011e3f3b68faf7f68592b3b931181e0cb4672
3 years, 11 months ago (2017-01-20 02:01:41 UTC) #48
dcheng
3 years, 11 months ago (2017-01-20 10:50:18 UTC) #50
Message was sent while issue was closed.
IPC lgtm

Powered by Google App Engine
This is Rietveld 408576698