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

Issue 1834303005: Refactor audio and video decoder status into common file. (Closed)

Created:
4 years, 8 months ago by DaleCurtis
Modified:
4 years, 8 months ago
Reviewers:
bbudge, xhwang, alokp
CC:
Aaron Boodman, abarth-chromium, avayvod+watch_chromium.org, ben+mojo_chromium.org, chromium-reviews, darin (slow to review), darin-cc_chromium.org, feature-media-reviews_chromium.org, imcheng+watch_chromium.org, isheriff+watch_chromium.org, jam, jasonroberts+watch_google.com, mcasas+watch_chromium.org, miu+watch_chromium.org, mkwst+moarreviews-renderer_chromium.org, mlamouri+watch-content_chromium.org, piman+watch_chromium.org, posciak+watch_chromium.org, qsr+mojo_chromium.org, sandersd (OOO until July 31), viettrungluu+watch_chromium.org, xjz+watch_chromium.org, yzshen+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Refactor audio and video decoder status into common file. Completes a long standing refactor that rileya@ initiated in days of yore before we had DecoderStream. Will make it easier to add a new entry for PLATFORM_FAILURE in a followup CL. Should be no functional changes, though it does include a fix to the pepper video decoder shim which was silenting converting the int type of VideoDecoder::Status to a int32_t which was expected to be PP_xxx type value. This change sends PP_OK (== 0) where previously it was sending VideoDecoder::kAborted (== 1). BUG=595076 TEST=none Committed: https://crrev.com/8f75b99f6313d6a88aad2a759eb551afb183561b Cr-Commit-Position: refs/heads/master@{#384020}

Patch Set 1 #

Patch Set 2 : Fix cast. #

Total comments: 9

Patch Set 3 : Comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+237 lines, -206 lines) Patch
M chromecast/media/cma/decoder/cast_audio_decoder_linux.cc View 1 2 1 chunk +3 lines, -3 lines 0 comments Download
M content/common/gpu/media/video_encode_accelerator_unittest.cc View 1 2 3 chunks +5 lines, -6 lines 0 comments Download
M content/renderer/pepper/video_decoder_shim.cc View 1 2 3 chunks +7 lines, -11 lines 0 comments Download
M media/base/BUILD.gn View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M media/base/audio_decoder.h View 1 2 3 chunks +2 lines, -10 lines 0 comments Download
A media/base/decode_status.h View 1 2 1 chunk +27 lines, -0 lines 0 comments Download
A media/base/decode_status.cc View 1 2 1 chunk +26 lines, -0 lines 0 comments Download
M media/base/video_decoder.h View 1 2 3 chunks +2 lines, -10 lines 0 comments Download
M media/cast/sender/h264_vt_encoder_unittest.cc View 1 2 1 chunk +1 line, -3 lines 0 comments Download
M media/filters/android/media_codec_audio_decoder.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M media/filters/android/media_codec_audio_decoder.cc View 1 2 9 chunks +11 lines, -11 lines 0 comments Download
M media/filters/audio_decoder_unittest.cc View 1 2 8 chunks +8 lines, -11 lines 0 comments Download
M media/filters/decoder_stream.h View 1 2 2 chunks +1 line, -2 lines 0 comments Download
M media/filters/decoder_stream.cc View 1 2 3 chunks +6 lines, -5 lines 0 comments Download
M media/filters/decrypting_audio_decoder.cc View 1 2 7 chunks +7 lines, -7 lines 0 comments Download
M media/filters/decrypting_audio_decoder_unittest.cc View 1 2 10 chunks +10 lines, -10 lines 0 comments Download
M media/filters/decrypting_video_decoder.cc View 1 2 7 chunks +8 lines, -8 lines 0 comments Download
M media/filters/decrypting_video_decoder_unittest.cc View 1 2 12 chunks +14 lines, -14 lines 0 comments Download
M media/filters/fake_video_decoder.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M media/filters/fake_video_decoder.cc View 1 2 5 chunks +6 lines, -6 lines 0 comments Download
M media/filters/fake_video_decoder_unittest.cc View 1 2 6 chunks +8 lines, -8 lines 0 comments Download
M media/filters/ffmpeg_audio_decoder.cc View 1 2 4 chunks +5 lines, -5 lines 0 comments Download
M media/filters/ffmpeg_video_decoder.cc View 1 2 3 chunks +4 lines, -4 lines 0 comments Download
M media/filters/ffmpeg_video_decoder_unittest.cc View 1 2 9 chunks +22 lines, -24 lines 0 comments Download
M media/filters/gpu_video_decoder.cc View 1 2 6 chunks +7 lines, -6 lines 0 comments Download
M media/filters/opus_audio_decoder.cc View 1 2 3 chunks +4 lines, -4 lines 0 comments Download
M media/filters/vpx_video_decoder.cc View 1 2 2 chunks +5 lines, -5 lines 0 comments Download
M media/media.gyp View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M media/mojo/services/mojo_audio_decoder.cc View 1 2 4 chunks +11 lines, -10 lines 0 comments Download
M media/mojo/services/mojo_audio_decoder_service.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M media/mojo/services/mojo_audio_decoder_service.cc View 1 2 1 chunk +6 lines, -7 lines 0 comments Download
M media/mojo/services/mojo_video_decoder.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M media/renderers/audio_renderer_impl.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M media/renderers/audio_renderer_impl_unittest.cc View 1 2 3 chunks +4 lines, -4 lines 0 comments Download
M media/renderers/video_renderer_impl_unittest.cc View 1 2 4 chunks +7 lines, -7 lines 0 comments Download

Messages

Total messages: 32 (14 generated)
DaleCurtis
bbudge: Please check the content/renderer/pepper/ changes to video shim. Notably this changes OnDecodeComplete to send ...
4 years, 8 months ago (2016-03-28 23:56:41 UTC) #3
DaleCurtis
bbudge: Please check the content/renderer/pepper/ changes to video shim. Notably this changes OnDecodeComplete to send ...
4 years, 8 months ago (2016-03-28 23:56:41 UTC) #4
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1834303005/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1834303005/1
4 years, 8 months ago (2016-03-28 23:57:19 UTC) #6
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: cast_shell_linux on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_linux/builds/135673)
4 years, 8 months ago (2016-03-29 00:18:08 UTC) #8
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1834303005/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1834303005/20001
4 years, 8 months ago (2016-03-29 01:47:13 UTC) #10
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 8 months ago (2016-03-29 02:57:00 UTC) #12
bbudge
content/renderer/pepper LGTM Thanks! https://codereview.chromium.org/1834303005/diff/20001/content/renderer/pepper/video_decoder_shim.cc File content/renderer/pepper/video_decoder_shim.cc (right): https://codereview.chromium.org/1834303005/diff/20001/content/renderer/pepper/video_decoder_shim.cc#newcode735 content/renderer/pepper/video_decoder_shim.cc:735: FROM_HERE, base::Bind(&VideoDecoderShim::OnDecodeComplete, shim_, PP_OK, Thanks for ...
4 years, 8 months ago (2016-03-29 17:48:59 UTC) #13
xhwang
Looking good. I just have a few comments/nits for discussion. CCing sandersd@ for one comment. ...
4 years, 8 months ago (2016-03-29 19:42:28 UTC) #14
DaleCurtis
+alokp for chromecast/ https://chromiumcodereview.appspot.com/1834303005/diff/20001/media/base/decoder_status.h File media/base/decoder_status.h (right): https://chromiumcodereview.appspot.com/1834303005/diff/20001/media/base/decoder_status.h#newcode8 media/base/decoder_status.h:8: #include <ostream> On 2016/03/29 at 19:42:28, ...
4 years, 8 months ago (2016-03-30 00:34:19 UTC) #16
xhwang
lgtm
4 years, 8 months ago (2016-03-30 00:48:22 UTC) #17
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1834303005/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1834303005/40001
4 years, 8 months ago (2016-03-30 00:49:27 UTC) #19
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/203617)
4 years, 8 months ago (2016-03-30 03:27:02 UTC) #21
alokp
chromecast lgtm
4 years, 8 months ago (2016-03-30 04:36:13 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1834303005/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1834303005/40001
4 years, 8 months ago (2016-03-30 04:39:39 UTC) #25
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on tryserver.chromium.win (JOB_TIMED_OUT, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/189011)
4 years, 8 months ago (2016-03-30 06:55:07 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1834303005/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1834303005/40001
4 years, 8 months ago (2016-03-30 16:35:07 UTC) #29
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 8 months ago (2016-03-30 17:55:08 UTC) #30
commit-bot: I haz the power
4 years, 8 months ago (2016-03-30 17:56:43 UTC) #32
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/8f75b99f6313d6a88aad2a759eb551afb183561b
Cr-Commit-Position: refs/heads/master@{#384020}

Powered by Google App Engine
This is Rietveld 408576698