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

Issue 2283493003: Delete browser MSE implementation. (Closed)

Created:
4 years, 3 months ago by DaleCurtis
Modified:
4 years, 2 months ago
CC:
avayvod+watch_chromium.org, chromium-reviews, creis+watch_chromium.org, darin-cc_chromium.org, feature-media-reviews_chromium.org, jam, mcasas+watch+vc_chromium.org, miu+watch_chromium.org, mlamouri+watch-content_chromium.org, mlamouri+watch-media_chromium.org, nasko+codewatch_chromium.org, posciak+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Delete browser MSE implementation. Spitzer can handle all MSE playbacks now. Saves about 70kb! BUG=570711 Committed: https://crrev.com/c72600f07436a0429d107cbc75442bd585dace20 Cr-Commit-Position: refs/heads/master@{#421953}

Patch Set 1 #

Patch Set 2 : Rebase. #

Total comments: 2

Patch Set 3 : Use DCHECK. Delete unused test classes. #

Patch Set 4 : Actually delete MSP. Cleanse references. Remove AudioTrack usage. #

Total comments: 17
Unified diffs Side-by-side diffs Delta from patch set Stats (+55 lines, -8360 lines) Patch
M content/browser/BUILD.gn View 1 1 chunk +0 lines, -2 lines 0 comments Download
D content/browser/media/android/browser_demuxer_android.h View 1 chunk +0 lines, -76 lines 0 comments Download
D content/browser/media/android/browser_demuxer_android.cc View 1 chunk +0 lines, -172 lines 0 comments Download
M content/browser/media/android/browser_media_player_manager.h View 1 3 chunks +1 line, -8 lines 0 comments Download
M content/browser/media/android/browser_media_player_manager.cc View 1 2 3 7 chunks +3 lines, -27 lines 0 comments Download
M content/browser/media/android/media_player_renderer.h View 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/media/android/media_player_renderer.cc View 1 1 chunk +0 lines, -4 lines 0 comments Download
M content/browser/renderer_host/render_process_host_impl.h View 1 3 chunks +0 lines, -11 lines 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 1 2 chunks +0 lines, -4 lines 0 comments Download
M content/common/media/media_player_messages_android.h View 1 7 chunks +2 lines, -98 lines 1 comment Download
M content/renderer/BUILD.gn View 1 1 chunk +0 lines, -4 lines 0 comments Download
D content/renderer/media/android/media_source_delegate.h View 1 chunk +0 lines, -259 lines 0 comments Download
D content/renderer/media/android/media_source_delegate.cc View 1 chunk +0 lines, -811 lines 0 comments Download
D content/renderer/media/android/renderer_demuxer_android.h View 1 chunk +0 lines, -86 lines 0 comments Download
D content/renderer/media/android/renderer_demuxer_android.cc View 1 chunk +0 lines, -101 lines 0 comments Download
M content/renderer/media/android/renderer_media_player_manager.h View 1 2 chunks +0 lines, -2 lines 0 comments Download
M content/renderer/media/android/renderer_media_player_manager.cc View 1 3 chunks +0 lines, -10 lines 0 comments Download
M content/renderer/media/android/webmediaplayer_android.h View 1 9 chunks +1 line, -54 lines 0 comments Download
M content/renderer/media/android/webmediaplayer_android.cc View 1 2 3 18 chunks +18 lines, -277 lines 4 comments Download
M content/renderer/render_frame_impl.cc View 1 1 chunk +5 lines, -0 lines 2 comments Download
M content/renderer/render_thread_impl.h View 1 3 chunks +0 lines, -8 lines 0 comments Download
M content/renderer/render_thread_impl.cc View 1 2 chunks +0 lines, -6 lines 0 comments Download
M media/base/android/BUILD.gn View 1 2 3 chunks +0 lines, -17 lines 0 comments Download
D media/base/android/audio_decoder_job.h View 1 chunk +0 lines, -97 lines 0 comments Download
D media/base/android/audio_decoder_job.cc View 1 chunk +0 lines, -249 lines 0 comments Download
D media/base/android/demuxer_android.h View 1 chunk +0 lines, -67 lines 0 comments Download
D media/base/android/demuxer_stream_player_params.h View 1 chunk +0 lines, -85 lines 0 comments Download
D media/base/android/demuxer_stream_player_params.cc View 1 chunk +0 lines, -117 lines 0 comments Download
M media/base/android/java/src/org/chromium/media/MediaCodecBridge.java View 1 2 3 9 chunks +1 line, -131 lines 0 comments Download
M media/base/android/java/src/org/chromium/media/MediaDrmBridge.java View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M media/base/android/media_codec_bridge.h View 1 2 3 1 chunk +1 line, -2 lines 2 comments Download
D media/base/android/media_decoder_job.h View 1 chunk +0 lines, -367 lines 0 comments Download
D media/base/android/media_decoder_job.cc View 1 chunk +0 lines, -693 lines 0 comments Download
M media/base/android/media_drm_bridge.h View 1 2 3 1 chunk +0 lines, -6 lines 0 comments Download
M media/base/android/media_drm_bridge.cc View 1 2 3 1 chunk +0 lines, -5 lines 0 comments Download
M media/base/android/media_player_manager.h View 2 chunks +0 lines, -5 lines 0 comments Download
D media/base/android/media_source_player.h View 1 2 3 1 chunk +0 lines, -289 lines 0 comments Download
D media/base/android/media_source_player.cc View 1 2 3 1 chunk +0 lines, -865 lines 0 comments Download
D media/base/android/media_source_player_unittest.cc View 1 2 3 1 chunk +0 lines, -2427 lines 0 comments Download
D media/base/android/media_statistics.h View 1 chunk +0 lines, -88 lines 0 comments Download
D media/base/android/media_statistics.cc View 1 chunk +0 lines, -125 lines 8 comments Download
M media/base/android/sdk_media_codec_bridge.h View 1 2 3 2 chunks +1 line, -28 lines 0 comments Download
M media/base/android/sdk_media_codec_bridge.cc View 1 2 3 6 chunks +3 lines, -48 lines 0 comments Download
M media/base/android/sdk_media_codec_bridge_unittest.cc View 1 2 3 4 chunks +14 lines, -15 lines 0 comments Download
D media/base/android/test_data_factory.h View 1 2 1 chunk +0 lines, -101 lines 0 comments Download
D media/base/android/test_data_factory.cc View 1 2 1 chunk +0 lines, -185 lines 0 comments Download
D media/base/android/test_statistics.h View 1 2 1 chunk +0 lines, -49 lines 0 comments Download
D media/base/android/video_decoder_job.h View 1 chunk +0 lines, -77 lines 0 comments Download
D media/base/android/video_decoder_job.cc View 1 chunk +0 lines, -169 lines 0 comments Download
M media/blink/renderer_media_player_interface.h View 1 3 chunks +0 lines, -3 lines 0 comments Download
M media/blink/webmediaplayer_cast_android.h View 1 1 chunk +0 lines, -2 lines 0 comments Download
M media/blink/webmediaplayer_cast_android.cc View 1 2 chunks +1 line, -2 lines 0 comments Download
M media/filters/android/media_codec_audio_decoder.cc View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M media/filters/stream_parser_factory.cc View 1 1 chunk +2 lines, -22 lines 0 comments Download

Messages

Total messages: 29 (15 generated)
DaleCurtis
Min, Matt: I figured you would like to do the honors on this one! Nick: ...
4 years, 2 months ago (2016-09-29 18:22:58 UTC) #2
DaleCurtis
+dcheng for content/common/media/media_player_messages_android.h deletions.
4 years, 2 months ago (2016-09-29 18:25:16 UTC) #6
dcheng
LGTM with nit https://codereview.chromium.org/2283493003/diff/20001/content/renderer/media/android/webmediaplayer_android.cc File content/renderer/media/android/webmediaplayer_android.cc (right): https://codereview.chromium.org/2283493003/diff/20001/content/renderer/media/android/webmediaplayer_android.cc#newcode246 content/renderer/media/android/webmediaplayer_android.cc:246: CHECK_EQ(load_type, LoadTypeURL) Any reason this is ...
4 years, 2 months ago (2016-09-29 18:36:35 UTC) #7
DaleCurtis
https://codereview.chromium.org/2283493003/diff/20001/content/renderer/media/android/webmediaplayer_android.cc File content/renderer/media/android/webmediaplayer_android.cc (right): https://codereview.chromium.org/2283493003/diff/20001/content/renderer/media/android/webmediaplayer_android.cc#newcode246 content/renderer/media/android/webmediaplayer_android.cc:246: CHECK_EQ(load_type, LoadTypeURL) On 2016/09/29 at 18:36:35, dcheng wrote: > ...
4 years, 2 months ago (2016-09-29 18:45:32 UTC) #10
qinmin
lgtm % comments: i didn't see MediaSourcePlayer get deleted in this CL
4 years, 2 months ago (2016-09-29 18:56:31 UTC) #13
DaleCurtis
Whoops, thanks for pointing that out; it was lost during the rebase.
4 years, 2 months ago (2016-09-29 19:25:27 UTC) #16
ncarter (slow)
https://codereview.chromium.org/2283493003/diff/60001/content/renderer/render_frame_impl.cc File content/renderer/render_frame_impl.cc (right): https://codereview.chromium.org/2283493003/diff/60001/content/renderer/render_frame_impl.cc#newcode796 content/renderer/render_frame_impl.cc:796: // Always use WMPI for playing blob URLs since ...
4 years, 2 months ago (2016-09-29 21:17:08 UTC) #19
DaleCurtis
https://codereview.chromium.org/2283493003/diff/60001/content/renderer/render_frame_impl.cc File content/renderer/render_frame_impl.cc (right): https://codereview.chromium.org/2283493003/diff/60001/content/renderer/render_frame_impl.cc#newcode796 content/renderer/render_frame_impl.cc:796: // Always use WMPI for playing blob URLs since ...
4 years, 2 months ago (2016-09-29 21:55:54 UTC) #20
ncarter (slow)
lgtm
4 years, 2 months ago (2016-09-29 22:00:21 UTC) #21
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/2283493003/60001
4 years, 2 months ago (2016-09-29 22:14:51 UTC) #24
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 2 months ago (2016-09-29 22:22:23 UTC) #25
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/c72600f07436a0429d107cbc75442bd585dace20 Cr-Commit-Position: refs/heads/master@{#421953}
4 years, 2 months ago (2016-09-29 22:24:56 UTC) #27
wolenetz
belated LGTM % some nits: https://codereview.chromium.org/2283493003/diff/60001/content/common/media/media_player_messages_android.h File content/common/media/media_player_messages_android.h (left): https://codereview.chromium.org/2283493003/diff/60001/content/common/media/media_player_messages_android.h#oldcode112 content/common/media/media_player_messages_android.h:112: // keyframe. See http://crbug.com/304234. ...
4 years, 2 months ago (2016-09-30 23:23:24 UTC) #28
DaleCurtis
4 years, 2 months ago (2016-09-30 23:34:24 UTC) #29
Message was sent while issue was closed.
Thanks! Followup here https://codereview.chromium.org/2382023005/

https://codereview.chromium.org/2283493003/diff/60001/content/renderer/media/...
File content/renderer/media/android/webmediaplayer_android.cc (right):

https://codereview.chromium.org/2283493003/diff/60001/content/renderer/media/...
content/renderer/media/android/webmediaplayer_android.cc:147:
ignore_metadata_duration_change_(false),
On 2016/09/30 23:23:24, wolenetz wrote:
> Without MSE, this field and associated conditions are no longer necessary in
> WMPA.

Removed.

https://codereview.chromium.org/2283493003/diff/60001/content/renderer/media/...
content/renderer/media/android/webmediaplayer_android.cc:1240:
blink::WebContentDecryptionModuleExceptionInvalidStateError, 0,
On 2016/09/30 at 23:23:24, wolenetz wrote:
> nit: blink::WebContentDecryptionModuleExceptionNotSupportedError ? I'm not
sure -- jrummell@ / ddorwin@ / xhwang@ will know better, but completeWithError
has promise resolution condition attached only to the NotSupportedError IIUC.
Also, the default impl of this method in the base class is: 
result.completeWithError(WebContentDecryptionModuleExceptionNotSupportedError,
0, "ERROR");

Deleted.

https://codereview.chromium.org/2283493003/diff/60001/media/base/android/medi...
File media/base/android/media_codec_bridge.h (right):

https://codereview.chromium.org/2283493003/diff/60001/media/base/android/medi...
media/base/android/media_codec_bridge.h:106: // Same QueueSecureInputBuffer
overriden for the use with MediaCodecPlayer.
On 2016/09/30 23:23:24, wolenetz wrote:
> But.. no MediaCodecPlayer is in the code as of Aug 25 IIUC.

Comment updated.

https://codereview.chromium.org/2283493003/diff/60001/media/base/android/medi...
File media/base/android/media_statistics.cc (left):

https://codereview.chromium.org/2283493003/diff/60001/media/base/android/medi...
media/base/android/media_statistics.cc:97: "Media.MSE.PlaybackDuration",
duration,
On 2016/09/30 23:23:23, wolenetz wrote:
> Deprecate this in histograms.xml?

Done.

https://codereview.chromium.org/2283493003/diff/60001/media/base/android/medi...
media/base/android/media_statistics.cc:105: "Media.MSE.LateAudioFrames",
On 2016/09/30 23:23:23, wolenetz wrote:
> ditto

Done.

https://codereview.chromium.org/2283493003/diff/60001/media/base/android/medi...
media/base/android/media_statistics.cc:111: "Media.MSE.LateVideoFrames",
On 2016/09/30 23:23:23, wolenetz wrote:
> ditto

Done.

https://codereview.chromium.org/2283493003/diff/60001/media/base/android/medi...
media/base/android/media_statistics.cc:120:
UMA_HISTOGRAM_COUNTS("Media.MSE.Starvations",
On 2016/09/30 23:23:23, wolenetz wrote:
> ditto

Done.

Powered by Google App Engine
This is Rietveld 408576698