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

Issue 2549283002: Android: enable WebRTC HW H264 with a flag by default (Closed)

Created:
4 years ago by braveyao
Modified:
4 years ago
Reviewers:
jwd, Pawel Osciak, piman
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, mcasas+watch+vc_chromium.org, posciak+watch_chromium.org, jam, feature-media-reviews_chromium.org, darin-cc_chromium.org, asvitkine+watch_chromium.org, piman+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Android: enable WebRTC HW H264 with a flag by default This cl is to enable HW H264 encoding on Android by default, with a flag. This feature is firstly introduced in crbug/615108 (cl https://codereview.chromium.org/2358683002), disabled by default with a combined flag for both VP8 and H264. Now we separate the flag into two and still keep VP8 HW encoder disabled by default. BUG=664652 Committed: https://crrev.com/dae42d9a0ed4b75e0c6064d715da8bcb26603b3f Cr-Commit-Position: refs/heads/master@{#437665}

Patch Set 1 #

Total comments: 4

Patch Set 2 : rename to kDisableWebRtcHWVP8Encoding #

Total comments: 4

Patch Set 3 : address comments #

Patch Set 4 : fix wrong revision of histograms.xml #

Total comments: 2

Patch Set 5 : keep value and add (deprecated) to the label in histograms.xml #

Patch Set 6 : fix histograms value #

Unified diffs Side-by-side diffs Delta from patch set Stats (+44 lines, -66 lines) Patch
M chrome/app/generated_resources.grd View 1 1 chunk +8 lines, -14 lines 0 comments Download
M chrome/browser/about_flags.cc View 1 2 chunks +6 lines, -16 lines 0 comments Download
M chrome/browser/chromeos/login/chrome_restart_request.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M content/browser/gpu/compositor_util.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M content/browser/gpu/gpu_data_manager_impl_private.cc View 1 3 chunks +6 lines, -4 lines 0 comments Download
M content/browser/gpu/gpu_process_host.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M content/public/browser/gpu_utils.cc View 1 2 2 chunks +3 lines, -3 lines 0 comments Download
M content/public/common/content_features.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M content/public/common/content_features.cc View 1 1 chunk +4 lines, -0 lines 0 comments Download
M content/public/common/content_switches.h View 1 1 chunk +1 line, -4 lines 0 comments Download
M content/public/common/content_switches.cc View 1 1 chunk +1 line, -4 lines 0 comments Download
M content/renderer/media/gpu/rtc_video_encoder_factory.cc View 1 4 chunks +3 lines, -13 lines 0 comments Download
M content/renderer/media/webrtc/peer_connection_dependency_factory.cc View 1 2 chunks +3 lines, -3 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 4 chunks +4 lines, -1 line 0 comments Download

Messages

Total messages: 75 (58 generated)
braveyao
Hi piman, please take a look when you get a chance.
4 years ago (2016-12-06 00:12:45 UTC) #7
Pawel Osciak
https://codereview.chromium.org/2549283002/diff/1/content/renderer/media/gpu/rtc_video_encoder_factory.cc File content/renderer/media/gpu/rtc_video_encoder_factory.cc (right): https://codereview.chromium.org/2549283002/diff/1/content/renderer/media/gpu/rtc_video_encoder_factory.cc#newcode49 content/renderer/media/gpu/rtc_video_encoder_factory.cc:49: codecs->push_back(cricket::WebRtcVideoEncoderFactory::VideoCodec( Perhaps I'm misreading the logic of the decision ...
4 years ago (2016-12-06 04:13:01 UTC) #9
braveyao
https://codereview.chromium.org/2549283002/diff/1/content/renderer/media/gpu/rtc_video_encoder_factory.cc File content/renderer/media/gpu/rtc_video_encoder_factory.cc (right): https://codereview.chromium.org/2549283002/diff/1/content/renderer/media/gpu/rtc_video_encoder_factory.cc#newcode49 content/renderer/media/gpu/rtc_video_encoder_factory.cc:49: codecs->push_back(cricket::WebRtcVideoEncoderFactory::VideoCodec( On 2016/12/06 04:13:00, Pawel Osciak wrote: > Perhaps ...
4 years ago (2016-12-06 17:50:13 UTC) #10
piman
https://codereview.chromium.org/2549283002/diff/1/content/renderer/media/gpu/rtc_video_encoder_factory.cc File content/renderer/media/gpu/rtc_video_encoder_factory.cc (right): https://codereview.chromium.org/2549283002/diff/1/content/renderer/media/gpu/rtc_video_encoder_factory.cc#newcode49 content/renderer/media/gpu/rtc_video_encoder_factory.cc:49: codecs->push_back(cricket::WebRtcVideoEncoderFactory::VideoCodec( On 2016/12/06 17:50:13, braveyao wrote: > On 2016/12/06 ...
4 years ago (2016-12-06 21:29:42 UTC) #11
braveyao
Done. PTAL. https://codereview.chromium.org/2549283002/diff/1/content/renderer/media/gpu/rtc_video_encoder_factory.cc File content/renderer/media/gpu/rtc_video_encoder_factory.cc (right): https://codereview.chromium.org/2549283002/diff/1/content/renderer/media/gpu/rtc_video_encoder_factory.cc#newcode49 content/renderer/media/gpu/rtc_video_encoder_factory.cc:49: codecs->push_back(cricket::WebRtcVideoEncoderFactory::VideoCodec( On 2016/12/06 21:29:42, piman wrote: > ...
4 years ago (2016-12-07 17:07:37 UTC) #25
piman
LGTM + nit if Pawel is happy. https://codereview.chromium.org/2549283002/diff/40001/content/public/browser/gpu_utils.cc File content/public/browser/gpu_utils.cc (right): https://codereview.chromium.org/2549283002/diff/40001/content/public/browser/gpu_utils.cc#newcode48 content/public/browser/gpu_utils.cc:48: gpu_preferences.disable_web_rtc_hw_encoding = ...
4 years ago (2016-12-07 19:16:34 UTC) #26
braveyao
jwd@, please help to take a look at histograms.xml. Thanks! https://codereview.chromium.org/2549283002/diff/40001/content/public/browser/gpu_utils.cc File content/public/browser/gpu_utils.cc (right): https://codereview.chromium.org/2549283002/diff/40001/content/public/browser/gpu_utils.cc#newcode48 ...
4 years ago (2016-12-07 20:29:53 UTC) #28
piman
https://codereview.chromium.org/2549283002/diff/40001/content/public/browser/gpu_utils.cc File content/public/browser/gpu_utils.cc (right): https://codereview.chromium.org/2549283002/diff/40001/content/public/browser/gpu_utils.cc#newcode48 content/public/browser/gpu_utils.cc:48: gpu_preferences.disable_web_rtc_hw_encoding = On 2016/12/07 20:29:53, braveyao wrote: > On ...
4 years ago (2016-12-07 20:35:33 UTC) #29
braveyao
Hi piman@, that's the problem and fixed now. PTAL. https://codereview.chromium.org/2549283002/diff/40001/content/public/browser/gpu_utils.cc File content/public/browser/gpu_utils.cc (right): https://codereview.chromium.org/2549283002/diff/40001/content/public/browser/gpu_utils.cc#newcode48 content/public/browser/gpu_utils.cc:48: ...
4 years ago (2016-12-07 21:34:02 UTC) #32
piman
lgtm
4 years ago (2016-12-07 22:24:22 UTC) #38
jwd
lgtm https://codereview.chromium.org/2549283002/diff/100001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (left): https://codereview.chromium.org/2549283002/diff/100001/tools/metrics/histograms/histograms.xml#oldcode92156 tools/metrics/histograms/histograms.xml:92156: - <int value="-2008272679" label="disable-webrtc-hw-encoding"/> Can you keep this ...
4 years ago (2016-12-09 17:19:58 UTC) #55
braveyao
Thanks jwd@. Didn't notice such practice before and will keep it in mind. https://codereview.chromium.org/2549283002/diff/100001/tools/metrics/histograms/histograms.xml File ...
4 years ago (2016-12-09 17:29:40 UTC) #58
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/2549283002/140001
4 years ago (2016-12-09 21:48:23 UTC) #67
commit-bot: I haz the power
Committed patchset #6 (id:140001)
4 years ago (2016-12-09 22:05:00 UTC) #70
Pawel Osciak
kDisableWebRtcHWEncoding was essential for Chrome OS as we had an ability to have a global ...
4 years ago (2016-12-12 01:42:11 UTC) #71
commit-bot: I haz the power
Patchset 6 (id:??) landed as https://crrev.com/dae42d9a0ed4b75e0c6064d715da8bcb26603b3f Cr-Commit-Position: refs/heads/master@{#437665}
4 years ago (2016-12-12 14:56:46 UTC) #73
braveyao
4 years ago (2016-12-12 18:14:24 UTC) #74
Message was sent while issue was closed.
On 2016/12/12 01:42:11, Pawel Osciak wrote:
> kDisableWebRtcHWEncoding was essential for Chrome OS as we had an ability to
> have a global switch to disable all HW encoding with it, including both H264
and
> VP8 encoding.
> 
> It's very useful and widely documented and known, and used by QA and
developers.
> We would really prefer to keep it please. Could we please restore it? Thank
you.

OK. Good to know. I'll create another CL for this ASAP.

Powered by Google App Engine
This is Rietveld 408576698