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

Issue 453063002: Only allow webrtc HW offload for H264 encode for extension process. (Closed)

Created:
6 years, 4 months ago by hshi1
Modified:
6 years, 3 months ago
CC:
chromium-reviews, posciak+watch_chromium.org, mcasas+watch_chromium.org, feature-media-reviews_chromium.org, darin-cc_chromium.org, wjia+watch_chromium.org
Project:
chromium
Visibility:
Public.

Description

Only allow webrtc HW offload for H264 encode for extension process. Add cmdline switch::kEnableWebRtcHWH264Encoding to control whether to report WebRtc HW H264 encoding capability. BUG=385941 R=xiyuan@chromium.org,kalman@chromium.org,posicak@chromium.org,jamesr@chromium.org TBR=piman@chromium.org Committed: https://crrev.com/44954d45ef230efdaa323a0e192caad55aac42a2 Cr-Commit-Position: refs/heads/master@{#292028}

Patch Set 1 #

Total comments: 1

Patch Set 2 : Remove cyclic dependency. #

Patch Set 3 : Use a content common switch instead. #

Total comments: 3

Patch Set 4 : Address comments by posciak. #

Total comments: 2

Patch Set 5 : Move AppendSwitch to browser. #

Patch Set 6 : Rebased at r291500 #

Patch Set 7 : add ifdef for WEBRTC #

Unified diffs Side-by-side diffs Delta from patch set Stats (+24 lines, -5 lines) Patch
M chrome/browser/chromeos/login/chrome_restart_request.cc View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/extensions/chrome_content_browser_client_extensions_part.cc View 1 2 3 4 5 6 2 chunks +6 lines, -1 line 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M content/public/common/content_switches.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M content/public/common/content_switches.cc View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download
M content/renderer/media/rtc_video_encoder_factory.cc View 1 2 3 2 chunks +12 lines, -4 lines 0 comments Download

Messages

Total messages: 32 (0 generated)
hshi1
Note that this has dependency on another CL to land first: https://codereview.chromium.org/457733002/ Need to check ...
6 years, 4 months ago (2014-08-14 18:34:06 UTC) #1
jamesr
https://codereview.chromium.org/453063002/diff/1/content/renderer/DEPS File content/renderer/DEPS (right): https://codereview.chromium.org/453063002/diff/1/content/renderer/DEPS#newcode4 content/renderer/DEPS:4: "+extensions/common/switches.h", not lgtm. extensions/ depends on content/ so this ...
6 years, 4 months ago (2014-08-14 19:15:57 UTC) #2
hshi1
On 2014/08/14 19:15:57, jamesr wrote: > https://codereview.chromium.org/453063002/diff/1/content/renderer/DEPS > File content/renderer/DEPS (right): > > https://codereview.chromium.org/453063002/diff/1/content/renderer/DEPS#newcode4 > ...
6 years, 4 months ago (2014-08-14 19:17:53 UTC) #3
jamesr
extensions can only talk to the content public api
6 years, 4 months ago (2014-08-14 19:29:11 UTC) #4
hshi1
Alright, PTAL patch set #2 which removes the cyclic dependency.
6 years, 4 months ago (2014-08-14 21:28:38 UTC) #5
jamesr
+jam (content/ owner). I don't think that it makes sense for content to know about ...
6 years, 4 months ago (2014-08-14 21:55:42 UTC) #6
jam
On 2014/08/14 21:55:42, jamesr wrote: > +jam (content/ owner). I don't think that it makes ...
6 years, 4 months ago (2014-08-15 17:37:00 UTC) #7
hshi1
On 2014/08/15 17:37:00, jam wrote: > On 2014/08/14 21:55:42, jamesr wrote: > > +jam (content/ ...
6 years, 4 months ago (2014-08-18 23:32:26 UTC) #8
hshi1
PTAL patch set #3 - does this approach look ok to you?
6 years, 4 months ago (2014-08-19 01:13:34 UTC) #9
Pawel Osciak
https://codereview.chromium.org/453063002/diff/40001/content/renderer/media/rtc_video_encoder_factory.cc File content/renderer/media/rtc_video_encoder_factory.cc (right): https://codereview.chromium.org/453063002/diff/40001/content/renderer/media/rtc_video_encoder_factory.cc#newcode37 content/renderer/media/rtc_video_encoder_factory.cc:37: if (cmd_line->HasSwitch(switches::kEnableWebRtcHWH264Encoding)) { Could we please have this together ...
6 years, 4 months ago (2014-08-19 01:30:27 UTC) #10
hshi1
https://codereview.chromium.org/453063002/diff/40001/content/renderer/media/rtc_video_encoder_factory.cc File content/renderer/media/rtc_video_encoder_factory.cc (right): https://codereview.chromium.org/453063002/diff/40001/content/renderer/media/rtc_video_encoder_factory.cc#newcode37 content/renderer/media/rtc_video_encoder_factory.cc:37: if (cmd_line->HasSwitch(switches::kEnableWebRtcHWH264Encoding)) { On 2014/08/19 01:30:27, Pawel Osciak wrote: ...
6 years, 4 months ago (2014-08-19 17:34:49 UTC) #11
hshi1
+kalman (OWNER extensions/renderer/dispatcher.cc) Note that I had to append the switch for extension process. If ...
6 years, 4 months ago (2014-08-19 17:39:02 UTC) #12
not at google - send to devlin
https://codereview.chromium.org/453063002/diff/80001/extensions/renderer/dispatcher.cc File extensions/renderer/dispatcher.cc (right): https://codereview.chromium.org/453063002/diff/80001/extensions/renderer/dispatcher.cc#newcode194 extensions/renderer/dispatcher.cc:194: command_line.AppendSwitch(::switches::kEnableWebRtcHWH264Encoding); It's not clear that appending the command line ...
6 years, 4 months ago (2014-08-19 17:45:57 UTC) #13
hshi1
https://codereview.chromium.org/453063002/diff/80001/extensions/renderer/dispatcher.cc File extensions/renderer/dispatcher.cc (right): https://codereview.chromium.org/453063002/diff/80001/extensions/renderer/dispatcher.cc#newcode194 extensions/renderer/dispatcher.cc:194: command_line.AppendSwitch(::switches::kEnableWebRtcHWH264Encoding); Agreed, I'l move the AppendSwitch to browser.
6 years, 4 months ago (2014-08-19 18:07:39 UTC) #14
not at google - send to devlin
lgtm
6 years, 4 months ago (2014-08-19 19:26:00 UTC) #15
Pawel Osciak
https://codereview.chromium.org/453063002/diff/40001/content/renderer/media/rtc_video_encoder_factory.cc File content/renderer/media/rtc_video_encoder_factory.cc (right): https://codereview.chromium.org/453063002/diff/40001/content/renderer/media/rtc_video_encoder_factory.cc#newcode37 content/renderer/media/rtc_video_encoder_factory.cc:37: if (cmd_line->HasSwitch(switches::kEnableWebRtcHWH264Encoding)) { On 2014/08/19 17:34:49, hshi1 wrote: > ...
6 years, 4 months ago (2014-08-20 01:49:29 UTC) #16
hshi1
On 2014/08/20 01:49:29, Pawel Osciak wrote: > https://codereview.chromium.org/453063002/diff/40001/content/renderer/media/rtc_video_encoder_factory.cc > File content/renderer/media/rtc_video_encoder_factory.cc (right): > > https://codereview.chromium.org/453063002/diff/40001/content/renderer/media/rtc_video_encoder_factory.cc#newcode37 ...
6 years, 4 months ago (2014-08-22 19:04:27 UTC) #17
hshi1
Updating list of reviewers: xiyuan@ (chrome/browser/chromeos/*) jam@ (content/browser/*) posciak@ (content/renderer/media/*)
6 years, 4 months ago (2014-08-22 22:33:19 UTC) #18
xiyuan
chrome/browser/chromeos/* LGTM
6 years, 4 months ago (2014-08-22 22:36:22 UTC) #19
Pawel Osciak
rtc_video_encoder_factory.cc LGTM I think we'll switch to a different flag to use for VDAs, something ...
6 years, 4 months ago (2014-08-25 06:13:32 UTC) #20
hshi1
jamesr@: you still have a -2 on this CL. Can you review the latest patch ...
6 years, 4 months ago (2014-08-25 17:24:58 UTC) #21
jamesr
jamesr@chromium.org changed reviewers: + jamesr@chromium.org
6 years, 3 months ago (2014-08-26 19:27:35 UTC) #22
jamesr
lgtm
6 years, 3 months ago (2014-08-26 19:27:35 UTC) #23
hshi1
The CQ bit was checked by hshi@chromium.org
6 years, 3 months ago (2014-08-26 19:42:13 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hshi@chromium.org/453063002/160001
6 years, 3 months ago (2014-08-26 19:44:33 UTC) #25
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: chromium_presubmit on tryserver.chromium.linux ...
6 years, 3 months ago (2014-08-26 20:29:41 UTC) #26
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 3 months ago (2014-08-26 20:34:32 UTC) #27
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/6759)
6 years, 3 months ago (2014-08-26 20:34:33 UTC) #28
hshi1
The CQ bit was checked by hshi@chromium.org
6 years, 3 months ago (2014-08-26 23:13:22 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hshi@chromium.org/453063002/160001
6 years, 3 months ago (2014-08-26 23:14:53 UTC) #30
commit-bot: I haz the power
Committed patchset #7 (160001) as 7d737bc4f415c4152ff0a227184faedf00b948a1
6 years, 3 months ago (2014-08-26 23:32:38 UTC) #31
commit-bot: I haz the power
6 years, 3 months ago (2014-09-10 02:47:17 UTC) #32
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/44954d45ef230efdaa323a0e192caad55aac42a2
Cr-Commit-Position: refs/heads/master@{#292028}

Powered by Google App Engine
This is Rietveld 408576698