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

Issue 395703002: Fold {Audio|Video}Decoder::Stop() into the dtor. (Closed)

Created:
6 years, 5 months ago by xhwang
Modified:
6 years, 5 months ago
CC:
chromium-reviews, darin-cc_chromium.org, jam, feature-media-reviews_chromium.org
Project:
chromium
Visibility:
Public.

Description

Fold {Audio|Video}Decoder::Stop() into the dtor. The Stop() process is already synchronous. This CL folds the Stop() call into the dtor which simplifies a lot of code. TBR=bbudge@chromium.org BUG=349211 TEST=Current unittests pass. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=283578

Patch Set 1 #

Patch Set 2 : minor fixes #

Total comments: 6

Patch Set 3 : comments addressed #

Patch Set 4 : rebase only #

Unified diffs Side-by-side diffs Delta from patch set Stats (+133 lines, -279 lines) Patch
M content/renderer/pepper/video_decoder_shim.cc View 1 2 chunks +4 lines, -4 lines 0 comments Download
M media/base/audio_decoder.h View 3 chunks +6 lines, -9 lines 0 comments Download
M media/base/mock_filters.h View 1 2 3 2 chunks +0 lines, -2 lines 0 comments Download
M media/base/video_decoder.h View 3 chunks +7 lines, -10 lines 0 comments Download
M media/filters/audio_decoder_selector_unittest.cc View 1 2 12 chunks +0 lines, -18 lines 0 comments Download
M media/filters/audio_decoder_unittest.cc View 8 chunks +3 lines, -19 lines 0 comments Download
M media/filters/audio_renderer_impl_unittest.cc View 1 2 3 chunks +0 lines, -3 lines 0 comments Download
M media/filters/decoder_selector.cc View 1 chunk +1 line, -1 line 0 comments Download
M media/filters/decoder_stream.cc View 1 chunk +2 lines, -3 lines 0 comments Download
M media/filters/decrypting_audio_decoder.h View 3 chunks +1 line, -3 lines 0 comments Download
M media/filters/decrypting_audio_decoder.cc View 1 2 4 chunks +7 lines, -14 lines 0 comments Download
M media/filters/decrypting_audio_decoder_unittest.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M media/filters/decrypting_video_decoder.h View 3 chunks +0 lines, -5 lines 0 comments Download
M media/filters/decrypting_video_decoder.cc View 4 chunks +6 lines, -17 lines 0 comments Download
M media/filters/decrypting_video_decoder_unittest.cc View 6 chunks +32 lines, -40 lines 0 comments Download
M media/filters/fake_video_decoder.h View 1 chunk +0 lines, -1 line 0 comments Download
M media/filters/fake_video_decoder.cc View 1 2 3 chunks +17 lines, -19 lines 0 comments Download
M media/filters/fake_video_decoder_unittest.cc View 1 3 chunks +13 lines, -13 lines 0 comments Download
M media/filters/ffmpeg_audio_decoder.h View 1 chunk +0 lines, -1 line 0 comments Download
M media/filters/ffmpeg_audio_decoder.cc View 2 chunks +6 lines, -14 lines 0 comments Download
M media/filters/ffmpeg_video_decoder.h View 1 chunk +0 lines, -1 line 0 comments Download
M media/filters/ffmpeg_video_decoder.cc View 1 2 1 chunk +3 lines, -12 lines 0 comments Download
M media/filters/ffmpeg_video_decoder_unittest.cc View 3 chunks +12 lines, -12 lines 0 comments Download
M media/filters/gpu_video_decoder.h View 1 chunk +0 lines, -1 line 0 comments Download
M media/filters/gpu_video_decoder.cc View 2 chunks +8 lines, -11 lines 0 comments Download
M media/filters/opus_audio_decoder.h View 1 chunk +0 lines, -1 line 0 comments Download
M media/filters/opus_audio_decoder.cc View 1 2 3 2 chunks +1 line, -5 lines 0 comments Download
M media/filters/video_decoder_selector_unittest.cc View 1 2 12 chunks +0 lines, -18 lines 0 comments Download
M media/filters/video_renderer_impl_unittest.cc View 1 2 3 2 chunks +0 lines, -11 lines 0 comments Download
M media/filters/vpx_video_decoder.h View 1 chunk +0 lines, -1 line 0 comments Download
M media/filters/vpx_video_decoder.cc View 1 2 2 chunks +1 line, -7 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
xhwang
scherkus: PTAL schenney: PTAL at content/renderer/pepper/video_decoder_shim.cc
6 years, 5 months ago (2014-07-15 22:32:36 UTC) #1
scherkus (not reviewing)
https://codereview.chromium.org/395703002/diff/20001/media/base/mock_filters.h File media/base/mock_filters.h (right): https://codereview.chromium.org/395703002/diff/20001/media/base/mock_filters.h#newcode90 media/base/mock_filters.h:90: MOCK_METHOD0(Destroy, void()); do we really need this? for example ...
6 years, 5 months ago (2014-07-15 23:37:27 UTC) #2
xhwang
rebase only
6 years, 5 months ago (2014-07-16 00:38:18 UTC) #3
xhwang
Comments addressed. PTAL again! https://codereview.chromium.org/395703002/diff/20001/media/base/mock_filters.h File media/base/mock_filters.h (right): https://codereview.chromium.org/395703002/diff/20001/media/base/mock_filters.h#newcode90 media/base/mock_filters.h:90: MOCK_METHOD0(Destroy, void()); On 2014/07/15 23:37:26, ...
6 years, 5 months ago (2014-07-16 03:37:22 UTC) #4
scherkus (not reviewing)
lgtm
6 years, 5 months ago (2014-07-16 17:51:49 UTC) #5
xhwang
bbudge@chromium.org: Please OWNERS review changes in content/renderer/pepper/video_decoder_shim.cc
6 years, 5 months ago (2014-07-16 19:51:01 UTC) #6
xhwang
On 2014/07/16 19:51:01, xhwang wrote: > mailto:bbudge@chromium.org: Please OWNERS review changes in > > content/renderer/pepper/video_decoder_shim.cc ...
6 years, 5 months ago (2014-07-16 19:54:37 UTC) #7
xhwang
The CQ bit was checked by xhwang@chromium.org
6 years, 5 months ago (2014-07-16 19:54:41 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/xhwang@chromium.org/395703002/60001
6 years, 5 months ago (2014-07-16 19:57:56 UTC) #9
bbudge
Pepper lgtm
6 years, 5 months ago (2014-07-16 19:58:49 UTC) #10
commit-bot: I haz the power
6 years, 5 months ago (2014-07-16 23:36:47 UTC) #11
Message was sent while issue was closed.
Change committed as 283578

Powered by Google App Engine
This is Rietveld 408576698