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

Issue 2832273002: Media Capabilities encoding: wire the hardware encoding support (Closed)

Created:
3 years, 8 months ago by mcasas
Modified:
3 years, 7 months ago
Reviewers:
chcunningham, emircan
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, emircan+watch+mediarecorder_chromium.org, posciak+watch_chromium.org, jam, darin-cc_chromium.org, mcasas+mediarecorder_chromium.org, chcunningham
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Media Capabilities encoding: wire the hardware encoding support This CL wires the EncodingInfo() response param |smooth| to the result of a new method in VideoTrackRecorder, namely IsEncodingLikelyAccelerated() that simply surfaces the previously somewhat internal information. A couple of extra lines come from refactoring similar code in either of the classes. Testing it with https://codepen.io/miguelao/full/bWNwej. BUG=709181 Review-Url: https://codereview.chromium.org/2832273002 Cr-Commit-Position: refs/heads/master@{#468558} Committed: https://chromium.googlesource.com/chromium/src/+/8dfce7635bf351e5ead9e6607bd068de121b1f92

Patch Set 1 : #

Total comments: 7

Patch Set 2 : s/IsEncodingLikelyAccelerated/CanUseAcceleratedEncoder/ #

Patch Set 3 : chcunningham@s comments: better |smooth| marking and rebase. #

Total comments: 2

Patch Set 4 : Reshuffled |kNumPixelsPerSecondSmoothnessThreshold| and comment #

Patch Set 5 : moved base::SysInfo::IsLowEndDevice back inside a method #

Unified diffs Side-by-side diffs Delta from patch set Stats (+77 lines, -25 lines) Patch
M content/renderer/media_recorder/media_recorder_handler.cc View 1 2 3 4 5 chunks +60 lines, -18 lines 0 comments Download
M content/renderer/media_recorder/video_track_recorder.h View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M content/renderer/media_recorder/video_track_recorder.cc View 1 2 3 4 2 chunks +14 lines, -7 lines 0 comments Download

Messages

Total messages: 30 (16 generated)
mcasas
emircan@ PTAL (chcunningham@ -in CC- has a parallel CL that should be orthogonal to these ...
3 years, 8 months ago (2017-04-21 23:40:26 UTC) #7
chcunningham
Drive by https://codereview.chromium.org/2832273002/diff/60001/content/renderer/media_recorder/media_recorder_handler.cc File content/renderer/media_recorder/media_recorder_handler.cc (right): https://codereview.chromium.org/2832273002/diff/60001/content/renderer/media_recorder/media_recorder_handler.cc#newcode331 content/renderer/media_recorder/media_recorder_handler.cc:331: info->smooth = VideoTrackRecorder::IsEncodingLikelyAccelerated( Please build this out ...
3 years, 8 months ago (2017-04-24 20:58:17 UTC) #9
emircan
https://codereview.chromium.org/2832273002/diff/60001/content/renderer/media_recorder/media_recorder_handler.cc File content/renderer/media_recorder/media_recorder_handler.cc (right): https://codereview.chromium.org/2832273002/diff/60001/content/renderer/media_recorder/media_recorder_handler.cc#newcode67 content/renderer/media_recorder/media_recorder_handler.cc:67: #if BUILDFLAG(RTC_USE_H264) We should use IS_H264_SUPPORTED as the android ...
3 years, 8 months ago (2017-04-25 02:04:30 UTC) #10
mcasas
ptal (disregard the red bots, it's due to another CL landing-being reverted all the time). ...
3 years, 8 months ago (2017-04-25 18:16:07 UTC) #11
chcunningham
https://codereview.chromium.org/2832273002/diff/60001/content/renderer/media_recorder/media_recorder_handler.cc File content/renderer/media_recorder/media_recorder_handler.cc (right): https://codereview.chromium.org/2832273002/diff/60001/content/renderer/media_recorder/media_recorder_handler.cc#newcode331 content/renderer/media_recorder/media_recorder_handler.cc:331: info->smooth = VideoTrackRecorder::IsEncodingLikelyAccelerated( Totally fine for the initial implementation ...
3 years, 8 months ago (2017-04-25 18:52:52 UTC) #12
mcasas
On 2017/04/25 18:52:52, chcunningham wrote: > https://codereview.chromium.org/2832273002/diff/60001/content/renderer/media_recorder/media_recorder_handler.cc > File content/renderer/media_recorder/media_recorder_handler.cc (right): > > https://codereview.chromium.org/2832273002/diff/60001/content/renderer/media_recorder/media_recorder_handler.cc#newcode331 > ...
3 years, 7 months ago (2017-04-27 18:14:01 UTC) #13
mcasas
Took chcunningham@s commments in, ptal
3 years, 7 months ago (2017-04-27 22:41:57 UTC) #14
mcasas
On 2017/04/27 22:41:57, mcasas wrote: > Took chcunningham@s commments in, ptal ping reviewers.
3 years, 7 months ago (2017-05-01 14:51:05 UTC) #15
emircan
https://codereview.chromium.org/2832273002/diff/100001/content/renderer/media_recorder/media_recorder_handler.cc File content/renderer/media_recorder/media_recorder_handler.cc (right): https://codereview.chromium.org/2832273002/diff/100001/content/renderer/media_recorder/media_recorder_handler.cc#newcode330 content/renderer/media_recorder/media_recorder_handler.cc:330: base::SysInfo::IsLowEndDevice() ? 640 * 480 * 30.0 : 1280 ...
3 years, 7 months ago (2017-05-01 17:12:29 UTC) #16
chcunningham
LGTM. Exciting to see it come to life.
3 years, 7 months ago (2017-05-01 18:02:48 UTC) #17
mcasas
emircan@ PTAL (moved the constant definition and reshuffled the comments). https://codereview.chromium.org/2832273002/diff/100001/content/renderer/media_recorder/media_recorder_handler.cc File content/renderer/media_recorder/media_recorder_handler.cc (right): https://codereview.chromium.org/2832273002/diff/100001/content/renderer/media_recorder/media_recorder_handler.cc#newcode330 ...
3 years, 7 months ago (2017-05-01 20:18:44 UTC) #18
emircan
lgtm
3 years, 7 months ago (2017-05-01 20:25:12 UTC) #19
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/2832273002/160001
3 years, 7 months ago (2017-05-02 03:42:44 UTC) #27
commit-bot: I haz the power
3 years, 7 months ago (2017-05-02 04:34:00 UTC) #30
Message was sent while issue was closed.
Committed patchset #5 (id:160001) as
https://chromium.googlesource.com/chromium/src/+/8dfce7635bf351e5ead9e6607bd0...

Powered by Google App Engine
This is Rietveld 408576698