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

Issue 2113783002: Refactoring: Merge VideoSenderConfig and AudioSenderConfig. (Closed)

Created:
4 years, 5 months ago by xjz
Modified:
4 years, 5 months ago
CC:
avayvod+watch_chromium.org, cbentzel+watch_chromium.org, chromium-apps-reviews_chromium.org, chromium-reviews, extensions-reviews_chromium.org, feature-media-reviews_chromium.org, imcheng+watch_chromium.org, isheriff+watch_chromium.org, jasonroberts+watch_google.com, miu+watch_chromium.org, posciak+watch_chromium.org, xjz+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Refactoring: Merge VideoSenderConfig and AudioSenderConfig. In the CL: 1) VideoSenderConfig and AudioSenderConfig are merged to FrameSenderConfig. 2) CastRtpParams is removed . RtpParams is directly converted to/from FrameSenderConfig. BUG=530839 Committed: https://crrev.com/4c97152e0f2b9bf5883d7ea7f149c932598c3afc Cr-Commit-Position: refs/heads/master@{#404520}

Patch Set 1 #

Total comments: 50

Patch Set 2 : Addressed comments and rebased. #

Total comments: 12

Patch Set 3 : Addressed comments. #

Total comments: 6

Patch Set 4 : Addressed mek's comment. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+571 lines, -806 lines) Patch
M chrome/renderer/extensions/cast_streaming_native_handler.cc View 1 2 9 chunks +202 lines, -126 lines 0 comments Download
M chrome/renderer/media/cast_rtp_stream.h View 1 3 chunks +6 lines, -86 lines 0 comments Download
M chrome/renderer/media/cast_rtp_stream.cc View 1 8 chunks +93 lines, -288 lines 0 comments Download
M chrome/renderer/media/cast_session.h View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/renderer/media/cast_session.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/renderer/media/cast_session_delegate.h View 1 chunk +8 lines, -8 lines 0 comments Download
M chrome/renderer/media/cast_session_delegate.cc View 3 chunks +3 lines, -4 lines 0 comments Download
M chrome/test/data/extensions/api_test/cast_streaming/rtp_stream_error.js View 1 2 3 1 chunk +11 lines, -9 lines 0 comments Download
M media/cast/cast_config.h View 1 3 chunks +62 lines, -67 lines 0 comments Download
M media/cast/cast_config.cc View 1 1 chunk +19 lines, -55 lines 0 comments Download
M media/cast/cast_sender.h View 2 chunks +2 lines, -2 lines 0 comments Download
M media/cast/cast_sender_impl.h View 1 chunk +3 lines, -4 lines 0 comments Download
M media/cast/cast_sender_impl.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M media/cast/receiver/frame_receiver.cc View 1 2 1 chunk +4 lines, -3 lines 0 comments Download
M media/cast/receiver/video_decoder_unittest.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M media/cast/sender/audio_sender.h View 1 chunk +1 line, -1 line 0 comments Download
M media/cast/sender/audio_sender.cc View 1 2 chunks +11 lines, -15 lines 0 comments Download
M media/cast/sender/audio_sender_unittest.cc View 1 3 chunks +5 lines, -5 lines 0 comments Download
M media/cast/sender/external_video_encoder.h View 3 chunks +4 lines, -4 lines 0 comments Download
M media/cast/sender/external_video_encoder.cc View 1 7 chunks +8 lines, -8 lines 0 comments Download
M media/cast/sender/fake_software_video_encoder.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M media/cast/sender/fake_software_video_encoder.cc View 1 1 chunk +4 lines, -2 lines 0 comments Download
M media/cast/sender/h264_vt_encoder.h View 2 chunks +3 lines, -3 lines 0 comments Download
M media/cast/sender/h264_vt_encoder.cc View 1 3 chunks +5 lines, -5 lines 0 comments Download
M media/cast/sender/size_adaptable_video_encoder_base.h View 3 chunks +3 lines, -5 lines 0 comments Download
M media/cast/sender/size_adaptable_video_encoder_base.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M media/cast/sender/video_encoder.h View 1 chunk +1 line, -1 line 0 comments Download
M media/cast/sender/video_encoder.cc View 1 chunk +1 line, -1 line 0 comments Download
M media/cast/sender/video_encoder_impl.h View 1 chunk +2 lines, -2 lines 0 comments Download
M media/cast/sender/video_encoder_impl.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M media/cast/sender/video_encoder_unittest.cc View 1 5 chunks +6 lines, -4 lines 0 comments Download
M media/cast/sender/video_sender.h View 1 1 chunk +1 line, -1 line 0 comments Download
M media/cast/sender/video_sender.cc View 1 3 chunks +3 lines, -3 lines 0 comments Download
M media/cast/sender/video_sender_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M media/cast/sender/vp8_encoder.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M media/cast/sender/vp8_encoder.cc View 1 7 chunks +16 lines, -13 lines 0 comments Download
M media/cast/sender/vp8_quantizer_parser_unittest.cc View 1 3 chunks +9 lines, -9 lines 0 comments Download
M media/cast/test/cast_benchmarks.cc View 1 2 3 chunks +7 lines, -6 lines 0 comments Download
M media/cast/test/end2end_unittest.cc View 1 7 chunks +12 lines, -12 lines 0 comments Download
M media/cast/test/fake_media_source.h View 3 chunks +4 lines, -4 lines 0 comments Download
M media/cast/test/fake_media_source.cc View 1 2 chunks +7 lines, -8 lines 0 comments Download
M media/cast/test/sender.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M media/cast/test/simulator.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M media/cast/test/utility/default_config.h View 1 chunk +4 lines, -4 lines 0 comments Download
M media/cast/test/utility/default_config.cc View 1 1 chunk +20 lines, -17 lines 0 comments Download

Messages

Total messages: 32 (11 generated)
xjz
PTAL
4 years, 5 months ago (2016-06-30 18:49:15 UTC) #2
miu
Very nice clean-up! :) Mostly nits: https://codereview.chromium.org/2113783002/diff/1/chrome/renderer/extensions/cast_streaming_native_handler.cc File chrome/renderer/extensions/cast_streaming_native_handler.cc (right): https://codereview.chromium.org/2113783002/diff/1/chrome/renderer/extensions/cast_streaming_native_handler.cc#newcode79 chrome/renderer/extensions/cast_streaming_native_handler.cc:79: const int kBitrateMultiplier ...
4 years, 5 months ago (2016-06-30 21:59:43 UTC) #3
xjz
Addressed comments. PTAL. https://codereview.chromium.org/2113783002/diff/1/chrome/renderer/extensions/cast_streaming_native_handler.cc File chrome/renderer/extensions/cast_streaming_native_handler.cc (right): https://codereview.chromium.org/2113783002/diff/1/chrome/renderer/extensions/cast_streaming_native_handler.cc#newcode79 chrome/renderer/extensions/cast_streaming_native_handler.cc:79: const int kBitrateMultiplier = 1000; On ...
4 years, 5 months ago (2016-07-01 23:52:10 UTC) #5
miu
Looking good. Just a few little things: https://codereview.chromium.org/2113783002/diff/40001/chrome/browser/extensions/api/cast_streaming/cast_streaming_apitest.cc File chrome/browser/extensions/api/cast_streaming/cast_streaming_apitest.cc (right): https://codereview.chromium.org/2113783002/diff/40001/chrome/browser/extensions/api/cast_streaming/cast_streaming_apitest.cc#newcode394 chrome/browser/extensions/api/cast_streaming/cast_streaming_apitest.cc:394: ASSERT_FALSE(RunExtensionSubtest("cast_streaming", "rtp_stream_error.html")); ...
4 years, 5 months ago (2016-07-06 21:20:26 UTC) #6
xjz
Addressed comments. PTAL. mek@: need owner's approval on cast_streaming_native_handler.cc. https://codereview.chromium.org/2113783002/diff/40001/chrome/browser/extensions/api/cast_streaming/cast_streaming_apitest.cc File chrome/browser/extensions/api/cast_streaming/cast_streaming_apitest.cc (right): https://codereview.chromium.org/2113783002/diff/40001/chrome/browser/extensions/api/cast_streaming/cast_streaming_apitest.cc#newcode394 chrome/browser/extensions/api/cast_streaming/cast_streaming_apitest.cc:394: ...
4 years, 5 months ago (2016-07-06 23:57:39 UTC) #9
miu
lgtm
4 years, 5 months ago (2016-07-07 04:44:16 UTC) #10
Marijn Kruisselbrink
lgtm, with one question https://codereview.chromium.org/2113783002/diff/80001/chrome/test/data/extensions/api_test/cast_streaming/rtp_stream_error.js File chrome/test/data/extensions/api_test/cast_streaming/rtp_stream_error.js (right): https://codereview.chromium.org/2113783002/diff/80001/chrome/test/data/extensions/api_test/cast_streaming/rtp_stream_error.js#newcode50 chrome/test/data/extensions/api_test/cast_streaming/rtp_stream_error.js:50: chrome.test.succeed(); I don't know enough ...
4 years, 5 months ago (2016-07-08 17:03:28 UTC) #11
xjz
Thanks for the review! https://codereview.chromium.org/2113783002/diff/80001/chrome/test/data/extensions/api_test/cast_streaming/rtp_stream_error.js File chrome/test/data/extensions/api_test/cast_streaming/rtp_stream_error.js (right): https://codereview.chromium.org/2113783002/diff/80001/chrome/test/data/extensions/api_test/cast_streaming/rtp_stream_error.js#newcode50 chrome/test/data/extensions/api_test/cast_streaming/rtp_stream_error.js:50: chrome.test.succeed(); On 2016/07/08 17:03:28, Marijn ...
4 years, 5 months ago (2016-07-08 17:11:26 UTC) #12
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/2113783002/80001
4 years, 5 months ago (2016-07-08 17:12:13 UTC) #14
Marijn Kruisselbrink
https://codereview.chromium.org/2113783002/diff/80001/chrome/test/data/extensions/api_test/cast_streaming/rtp_stream_error.js File chrome/test/data/extensions/api_test/cast_streaming/rtp_stream_error.js (right): https://codereview.chromium.org/2113783002/diff/80001/chrome/test/data/extensions/api_test/cast_streaming/rtp_stream_error.js#newcode50 chrome/test/data/extensions/api_test/cast_streaming/rtp_stream_error.js:50: chrome.test.succeed(); On 2016/07/08 at 17:11:26, xjz wrote: > On ...
4 years, 5 months ago (2016-07-08 17:12:13 UTC) #15
xjz
https://codereview.chromium.org/2113783002/diff/80001/chrome/test/data/extensions/api_test/cast_streaming/rtp_stream_error.js File chrome/test/data/extensions/api_test/cast_streaming/rtp_stream_error.js (right): https://codereview.chromium.org/2113783002/diff/80001/chrome/test/data/extensions/api_test/cast_streaming/rtp_stream_error.js#newcode50 chrome/test/data/extensions/api_test/cast_streaming/rtp_stream_error.js:50: chrome.test.succeed(); On 2016/07/08 17:12:13, Marijn Kruisselbrink wrote: > On ...
4 years, 5 months ago (2016-07-08 17:18:42 UTC) #16
Marijn Kruisselbrink
https://codereview.chromium.org/2113783002/diff/80001/chrome/test/data/extensions/api_test/cast_streaming/rtp_stream_error.js File chrome/test/data/extensions/api_test/cast_streaming/rtp_stream_error.js (right): https://codereview.chromium.org/2113783002/diff/80001/chrome/test/data/extensions/api_test/cast_streaming/rtp_stream_error.js#newcode50 chrome/test/data/extensions/api_test/cast_streaming/rtp_stream_error.js:50: chrome.test.succeed(); On 2016/07/08 at 17:18:42, xjz wrote: > On ...
4 years, 5 months ago (2016-07-08 17:23:23 UTC) #17
xjz
Addressed mek's comment in PS# 4. https://codereview.chromium.org/2113783002/diff/80001/chrome/test/data/extensions/api_test/cast_streaming/rtp_stream_error.js File chrome/test/data/extensions/api_test/cast_streaming/rtp_stream_error.js (right): https://codereview.chromium.org/2113783002/diff/80001/chrome/test/data/extensions/api_test/cast_streaming/rtp_stream_error.js#newcode50 chrome/test/data/extensions/api_test/cast_streaming/rtp_stream_error.js:50: chrome.test.succeed(); On 2016/07/08 ...
4 years, 5 months ago (2016-07-08 17:49:56 UTC) #19
Marijn Kruisselbrink
thanks! lgtm
4 years, 5 months ago (2016-07-08 17:56:10 UTC) #20
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/2113783002/100001
4 years, 5 months ago (2016-07-08 18:02:12 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: cast_shell_linux on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_linux/builds/187968) chromeos_daisy_chromium_compile_only_ng on master.tryserver.chromium.linux (JOB_FAILED, ...
4 years, 5 months ago (2016-07-08 20:04:01 UTC) #25
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/2113783002/100001
4 years, 5 months ago (2016-07-08 22:35:34 UTC) #27
commit-bot: I haz the power
Committed patchset #4 (id:100001)
4 years, 5 months ago (2016-07-08 22:52:11 UTC) #28
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-07-08 22:52:20 UTC) #29
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/4c97152e0f2b9bf5883d7ea7f149c932598c3afc Cr-Commit-Position: refs/heads/master@{#404520}
4 years, 5 months ago (2016-07-08 22:53:35 UTC) #31
danakj
4 years, 5 months ago (2016-07-08 23:11:39 UTC) #32
Message was sent while issue was closed.
A revert of this CL (patchset #4 id:100001) has been created in
https://codereview.chromium.org/2133223003/ by danakj@chromium.org.

The reason for reverting is: [1226/2497] CXX
obj/media/cast/sender/cast_h264_vt_encoder_unittests.h264_vt_encoder_unittest.o
FAILED:
obj/media/cast/sender/cast_h264_vt_encoder_unittests.h264_vt_encoder_unittest.o 
/b/build/slave/cache/cipd/goma/gomacc
../../third_party/llvm-build/Release+Asserts/bin/clang++ -MMD -MF
obj/media/cast/sender/cast_h264_vt_encoder_unittests.h264_vt_encoder_unittest.o.d
-DV8_DEPRECATION_WARNINGS -D__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORE=0
-DCHROMIUM_BUILD -DCR_CLANG_REVISION=274369-1 -DCOMPONENT_BUILD
-DUSE_LIBJPEG_TURBO=1 -DENABLE_WEBRTC=1 -DENABLE_MEDIA_ROUTER=1
-DENABLE_PEPPER_CDMS -DENABLE_NOTIFICATIONS -DUSE_EXTERNAL_POPUP_MENU
-DFIELDTRIAL_TESTING_ENABLED -DENABLE_TASK_MANAGER=1 -DENABLE_EXTENSIONS=1
-DENABLE_PDF=1 -DENABLE_PLUGIN_INSTALLATION=1 -DENABLE_PLUGINS=1
-DENABLE_SESSION_SERVICE=1 -DENABLE_THEMES=1 -DENABLE_PRINTING=1
-DENABLE_BASIC_PRINTING=1 -DENABLE_PRINT_PREVIEW=1 -DENABLE_SPELLCHECK=1
-DUSE_BROWSER_SPELLCHECKER=1 -DENABLE_CAPTIVE_PORTAL_DETECTION=1
-DENABLE_SUPERVISED_USERS=1 -DENABLE_SERVICE_DISCOVERY=1
-DV8_USE_EXTERNAL_STARTUP_DATA -DFULL_SAFE_BROWSING -DSAFE_BROWSING_CSD
-DSAFE_BROWSING_DB_LOCAL -DGTEST_HAS_POSIX_RE=0 -DGTEST_LANG_CXX11=0
-DPROTOBUF_USE_DLLS -DGOOGLE_PROTOBUF_NO_RTTI
-DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER -DUNIT_TEST -DGTEST_HAS_RTTI=0
-DUSE_LIBPCI=1 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS
-DDYNAMIC_ANNOTATIONS_ENABLED=1 -DWTF_USE_DYNAMIC_ANNOTATIONS=1 -Igen -I../..
-I../../third_party/khronos -I../../gpu -I../.. -I../../skia/config -Igen/angle
-Igen/protoc_out -I../../third_party/protobuf/src -I../../testing/gmock/include
-I../../testing/gtest/include
-I../../third_party/ffmpeg/chromium/config/Chromium/mac/x64
-I../../third_party/ffmpeg -isysroot
/b/build/slave/Mac_GYP__dbg_/build/src/build/mac_files/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk
-O0 -gdwarf-2 -fvisibility=hidden -Werror -mmacosx-version-min=10.7 -arch x86_64
-Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers
-Wno-selector-type-mismatch -Wpartial-availability -Wheader-hygiene
-Wno-char-subscripts -Wno-unneeded-internal-declaration
-Wno-covered-switch-default -Wstring-conversion -Wno-c++11-narrowing
-Wno-deprecated-register -Wno-inconsistent-missing-override
-Wno-shift-negative-value -Wno-undefined-var-template
-Wno-nonportable-include-path -std=c++11 -stdlib=libc++ -fno-rtti
-fno-exceptions -fvisibility-inlines-hidden -fno-threadsafe-statics
-fcolor-diagnostics -Xclang -load -Xclang
/b/build/slave/Mac_GYP__dbg_/build/src/third_party/llvm-build/Release+Asserts/lib/libFindBadConstructs.dylib
-Xclang -add-plugin -Xclang find-bad-constructs -Xclang
-plugin-arg-find-bad-constructs -Xclang check-templates -Xclang
-plugin-arg-find-bad-constructs -Xclang follow-macro-expansion -Xclang
-plugin-arg-find-bad-constructs -Xclang check-implicit-copy-ctors
-fno-strict-aliasing -fstack-protector-strong  -c
../../media/cast/sender/h264_vt_encoder_unittest.cc -o
obj/media/cast/sender/cast_h264_vt_encoder_unittests.h264_vt_encoder_unittest.o
../../media/cast/sender/h264_vt_encoder_unittest.cc:267:10: error: unknown type
name 'VideoSenderConfig'; did you mean 'VideoDecoderConfig'?
  static VideoSenderConfig video_sender_config_;
         ^~~~~~~~~~~~~~~~~
         VideoDecoderConfig
../../media/base/video_decoder_config.h:26:20: note: 'VideoDecoderConfig'
declared here
class MEDIA_EXPORT VideoDecoderConfig {
                   ^
../../media/cast/sender/h264_vt_encoder_unittest.cc:235:24: error: no matching
constructor for initialization of 'media::cast::H264VideoToolboxEncoder'
    encoder_.reset(new H264VideoToolboxEncoder(
                       ^
../../media/cast/sender/h264_vt_encoder.h:38:3: note: candidate constructor not
viable: no known conversion from 'media::VideoDecoderConfig' to 'const
media::cast::FrameSenderConfig' for 2nd argument
  H264VideoToolboxEncoder(
  ^
../../media/cast/sender/h264_vt_encoder.h:125:28: note: candidate constructor
not viable: requires 1 argument, but 3 were provided
  DISALLOW_COPY_AND_ASSIGN(H264VideoToolboxEncoder);
                           ^
../../media/cast/sender/h264_vt_encoder_unittest.cc:256:26: error: no viable
overloaded '='
    video_sender_config_ = GetDefaultVideoSenderConfig();
    ~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../media/base/video_decoder_config.h:26:20: note: candidate function (the
implicit copy assignment operator) not viable: no known conversion from
'media::cast::FrameSenderConfig' to 'const media::VideoDecoderConfig' for 1st
argument
class MEDIA_EXPORT VideoDecoderConfig {
                   ^
../../media/cast/sender/h264_vt_encoder_unittest.cc:257:26: error: reference to
non-static member function must be called; did you mean to call it with no
arguments?
    video_sender_config_.codec = CODEC_VIDEO_H264;
    ~~~~~~~~~~~~~~~~~~~~~^~~~~
                              ()
../../media/cast/sender/h264_vt_encoder_unittest.cc:257:32: error: expression is
not assignable
    video_sender_config_.codec = CODEC_VIDEO_H264;
    ~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
../../media/cast/sender/h264_vt_encoder_unittest.cc:283:1: error: unknown type
name 'VideoSenderConfig'; did you mean 'VideoDecoderConfig'?
VideoSenderConfig H264VideoToolboxEncoderTest::video_sender_config_;
^~~~~~~~~~~~~~~~~
VideoDecoderConfig
../../media/base/video_decoder_config.h:26:20: note: 'VideoDecoderConfig'
declared here
class MEDIA_EXPORT VideoDecoderConfig {
                   ^
6 errors generated.
.

Powered by Google App Engine
This is Rietveld 408576698