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

Issue 12989009: Remove reference counting from media::VideoDecoder and friends. (Closed)

Created:
7 years, 9 months ago by scherkus (not reviewing)
Modified:
7 years, 8 months ago
CC:
chromium-reviews, feature-media-reviews_chromium.org, darin-cc_chromium.org
Visibility:
Public.

Description

Remove reference counting from media::VideoDecoder and friends. In addition: * VideoRenderer is now passed a list of decoders via constructor instead of Initialize() * WebMediaPlayerImpl's FilterCollection is now built in one shot instead of incrementally BUG=173313 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=194993

Patch Set 1 : #

Total comments: 21

Patch Set 2 : Fixes #

Total comments: 3

Patch Set 3 : client proxy :( #

Total comments: 10

Patch Set 4 : rebase #

Patch Set 5 : fixes #

Total comments: 16

Patch Set 6 : nits #

Patch Set 7 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+445 lines, -477 lines) Patch
M media/base/filter_collection.h View 1 2 3 4 5 4 chunks +0 lines, -8 lines 0 comments Download
M media/base/filter_collection.cc View 1 2 3 4 5 2 chunks +0 lines, -5 lines 0 comments Download
M media/base/mock_filters.h View 1 2 3 4 5 1 chunk +9 lines, -10 lines 0 comments Download
M media/base/pipeline.cc View 2 chunks +0 lines, -2 lines 0 comments Download
M media/base/pipeline_unittest.cc View 5 chunks +9 lines, -18 lines 0 comments Download
M media/base/video_decoder.h View 1 2 3 3 chunks +5 lines, -7 lines 0 comments Download
M media/base/video_renderer.h View 4 chunks +2 lines, -7 lines 0 comments Download
M media/filters/decrypting_video_decoder.h View 4 chunks +4 lines, -4 lines 0 comments Download
M media/filters/decrypting_video_decoder.cc View 8 chunks +8 lines, -6 lines 0 comments Download
M media/filters/decrypting_video_decoder_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M media/filters/ffmpeg_video_decoder.h View 4 chunks +4 lines, -4 lines 0 comments Download
M media/filters/ffmpeg_video_decoder.cc View 3 chunks +4 lines, -1 line 0 comments Download
M media/filters/ffmpeg_video_decoder_unittest.cc View 1 2 3 2 chunks +2 lines, -4 lines 0 comments Download
M media/filters/gpu_video_decoder.h View 1 2 3 4 5 6 chunks +14 lines, -5 lines 0 comments Download
M media/filters/gpu_video_decoder.cc View 1 2 3 4 5 18 chunks +156 lines, -68 lines 0 comments Download
M media/filters/pipeline_integration_test_base.cc View 1 2 3 1 chunk +7 lines, -6 lines 0 comments Download
M media/filters/video_decoder_selector.h View 4 chunks +10 lines, -10 lines 0 comments Download
M media/filters/video_decoder_selector.cc View 5 chunks +36 lines, -43 lines 0 comments Download
M media/filters/video_decoder_selector_unittest.cc View 12 chunks +26 lines, -30 lines 0 comments Download
M media/filters/video_frame_stream.h View 1 2 4 chunks +6 lines, -9 lines 0 comments Download
M media/filters/video_frame_stream.cc View 1 2 7 chunks +9 lines, -21 lines 0 comments Download
M media/filters/video_frame_stream_unittest.cc View 1 2 3 chunks +10 lines, -9 lines 0 comments Download
M media/filters/video_renderer_base.h View 1 2 5 chunks +9 lines, -1 line 0 comments Download
M media/filters/video_renderer_base.cc View 1 2 4 chunks +3 lines, -5 lines 0 comments Download
M media/filters/video_renderer_base_unittest.cc View 1 2 3 chunks +5 lines, -4 lines 0 comments Download
M media/filters/vpx_video_decoder.h View 4 chunks +4 lines, -4 lines 0 comments Download
M media/filters/vpx_video_decoder.cc View 3 chunks +3 lines, -1 line 0 comments Download
M media/tools/player_x11/player_x11.cc View 1 2 3 1 chunk +4 lines, -3 lines 0 comments Download
D webkit/media/filter_helpers.h View 1 chunk +0 lines, -49 lines 0 comments Download
D webkit/media/filter_helpers.cc View 1 chunk +0 lines, -81 lines 0 comments Download
M webkit/media/webkit_media.gypi View 1 2 1 chunk +0 lines, -2 lines 0 comments Download
M webkit/media/webmediaplayer_impl.h View 1 2 3 4 5 4 chunks +7 lines, -3 lines 0 comments Download
M webkit/media/webmediaplayer_impl.cc View 1 2 3 4 5 11 chunks +88 lines, -46 lines 0 comments Download

Messages

Total messages: 23 (0 generated)
scherkus (not reviewing)
xhwang: please review everything fischman: take a look at GpuVideoDecoder https://codereview.chromium.org/12989009/diff/4001/media/filters/gpu_video_decoder.cc File media/filters/gpu_video_decoder.cc (right): https://codereview.chromium.org/12989009/diff/4001/media/filters/gpu_video_decoder.cc#newcode193 ...
7 years, 9 months ago (2013-03-22 00:04:20 UTC) #1
xhwang
lgtm https://codereview.chromium.org/12989009/diff/4001/media/filters/gpu_video_decoder.cc File media/filters/gpu_video_decoder.cc (right): https://codereview.chromium.org/12989009/diff/4001/media/filters/gpu_video_decoder.cc#newcode193 media/filters/gpu_video_decoder.cc:193: // XXX: how else would weak_vda be null? ...
7 years, 9 months ago (2013-03-22 01:00:32 UTC) #2
scherkus (not reviewing)
well that was easy ;) https://codereview.chromium.org/12989009/diff/4001/media/filters/video_decoder_selector.cc File media/filters/video_decoder_selector.cc (right): https://codereview.chromium.org/12989009/diff/4001/media/filters/video_decoder_selector.cc#newcode123 media/filters/video_decoder_selector.cc:123: input_stream_, On 2013/03/22 01:00:32, ...
7 years, 9 months ago (2013-03-22 01:06:55 UTC) #3
Ami GONE FROM CHROMIUM
I like it! https://codereview.chromium.org/12989009/diff/4001/media/filters/decrypting_video_decoder.cc File media/filters/decrypting_video_decoder.cc (right): https://codereview.chromium.org/12989009/diff/4001/media/filters/decrypting_video_decoder.cc#newcode44 media/filters/decrypting_video_decoder.cc:44: weak_this_ = weak_factory_.GetWeakPtr(); Nothing ever invalidates ...
7 years, 9 months ago (2013-03-22 23:48:01 UTC) #4
xhwang
https://codereview.chromium.org/12989009/diff/4001/media/filters/decrypting_video_decoder.cc File media/filters/decrypting_video_decoder.cc (right): https://codereview.chromium.org/12989009/diff/4001/media/filters/decrypting_video_decoder.cc#newcode44 media/filters/decrypting_video_decoder.cc:44: weak_this_ = weak_factory_.GetWeakPtr(); On 2013/03/22 23:48:01, Ami Fischman wrote: ...
7 years, 9 months ago (2013-03-22 23:59:02 UTC) #5
Ami GONE FROM CHROMIUM
https://codereview.chromium.org/12989009/diff/4001/media/filters/decrypting_video_decoder.cc File media/filters/decrypting_video_decoder.cc (right): https://codereview.chromium.org/12989009/diff/4001/media/filters/decrypting_video_decoder.cc#newcode44 media/filters/decrypting_video_decoder.cc:44: weak_this_ = weak_factory_.GetWeakPtr(); On 2013/03/22 23:59:03, xhwang wrote: > ...
7 years, 9 months ago (2013-03-23 00:02:01 UTC) #6
scherkus (not reviewing)
https://codereview.chromium.org/12989009/diff/4001/media/filters/decrypting_video_decoder.cc File media/filters/decrypting_video_decoder.cc (right): https://codereview.chromium.org/12989009/diff/4001/media/filters/decrypting_video_decoder.cc#newcode235 media/filters/decrypting_video_decoder.cc:235: base::Bind(&DecryptingVideoDecoder::DecryptAndDecodeBuffer, weak_this_)); On 2013/03/22 23:48:01, Ami Fischman wrote: > ...
7 years, 9 months ago (2013-03-28 02:00:01 UTC) #7
Ami GONE FROM CHROMIUM
https://codereview.chromium.org/12989009/diff/17001/media/filters/gpu_video_decoder.cc File media/filters/gpu_video_decoder.cc (right): https://codereview.chromium.org/12989009/diff/17001/media/filters/gpu_video_decoder.cc#newcode198 media/filters/gpu_video_decoder.cc:198: // Note: I don't think it's possible to guarantee ...
7 years, 8 months ago (2013-03-29 23:55:19 UTC) #8
scherkus (not reviewing)
PTAL apologies for not rebasing separately! I swore I hadn't rebased but apparently I did ...
7 years, 8 months ago (2013-04-05 01:18:30 UTC) #9
Ami GONE FROM CHROMIUM
https://codereview.chromium.org/12989009/diff/27035/media/filters/gpu_video_decoder.cc File media/filters/gpu_video_decoder.cc (right): https://codereview.chromium.org/12989009/diff/27035/media/filters/gpu_video_decoder.cc#newcode23 media/filters/gpu_video_decoder.cc:23: // a thread of the client's choice. Crazy Question ...
7 years, 8 months ago (2013-04-05 21:05:48 UTC) #10
scherkus (not reviewing)
https://codereview.chromium.org/12989009/diff/27035/media/filters/gpu_video_decoder.cc File media/filters/gpu_video_decoder.cc (right): https://codereview.chromium.org/12989009/diff/27035/media/filters/gpu_video_decoder.cc#newcode23 media/filters/gpu_video_decoder.cc:23: // a thread of the client's choice. On 2013/04/05 ...
7 years, 8 months ago (2013-04-05 21:16:12 UTC) #11
Ami GONE FROM CHROMIUM
> - GpuVDAClient holds onto factories_ and take care of some of the > work ...
7 years, 8 months ago (2013-04-05 21:22:21 UTC) #12
scherkus (not reviewing)
On 2013/04/05 21:22:21, Ami Fischman wrote: > > - GpuVDAClient holds onto factories_ and take ...
7 years, 8 months ago (2013-04-05 21:26:31 UTC) #13
Ami GONE FROM CHROMIUM
On Fri, Apr 5, 2013 at 2:26 PM, <scherkus@chromium.org> wrote: > Hmm... I wonder what ...
7 years, 8 months ago (2013-04-05 21:33:15 UTC) #14
scherkus (not reviewing)
I took a stab at your idea and it's a bit more invasive than I'd ...
7 years, 8 months ago (2013-04-08 16:53:10 UTC) #15
Ami GONE FROM CHROMIUM
On 2013/04/08 16:53:10, scherkus wrote: > I took a stab at your idea and it's ...
7 years, 8 months ago (2013-04-08 17:27:08 UTC) #16
xhwang
On 2013/04/08 17:27:08, Ami Fischman wrote: > On 2013/04/08 16:53:10, scherkus wrote: > > I ...
7 years, 8 months ago (2013-04-15 21:14:13 UTC) #17
scherkus (not reviewing)
PTAL I'm sticking with the proxy but added some details on how it could be ...
7 years, 8 months ago (2013-04-17 16:54:53 UTC) #18
xhwang
I like the Proxy implementation. Just a few questions about teardown. https://codereview.chromium.org/12989009/diff/65001/media/filters/gpu_video_decoder.cc File media/filters/gpu_video_decoder.cc (right): ...
7 years, 8 months ago (2013-04-18 00:40:48 UTC) #19
scherkus (not reviewing)
https://codereview.chromium.org/12989009/diff/65001/media/filters/gpu_video_decoder.cc File media/filters/gpu_video_decoder.cc (right): https://codereview.chromium.org/12989009/diff/65001/media/filters/gpu_video_decoder.cc#newcode36 media/filters/gpu_video_decoder.cc:36: // Detaches the proxy. |client| will no longer be ...
7 years, 8 months ago (2013-04-18 18:45:28 UTC) #20
xhwang
lgtm % one comment/reply https://codereview.chromium.org/12989009/diff/65001/media/filters/gpu_video_decoder.cc File media/filters/gpu_video_decoder.cc (right): https://codereview.chromium.org/12989009/diff/65001/media/filters/gpu_video_decoder.cc#newcode313 media/filters/gpu_video_decoder.cc:313: weak_vda->Destroy(); On 2013/04/18 18:45:29, scherkus ...
7 years, 8 months ago (2013-04-18 19:17:49 UTC) #21
scherkus (not reviewing)
https://codereview.chromium.org/12989009/diff/65001/media/filters/gpu_video_decoder.cc File media/filters/gpu_video_decoder.cc (right): https://codereview.chromium.org/12989009/diff/65001/media/filters/gpu_video_decoder.cc#newcode313 media/filters/gpu_video_decoder.cc:313: weak_vda->Destroy(); On 2013/04/18 19:17:49, xhwang wrote: > On 2013/04/18 ...
7 years, 8 months ago (2013-04-18 20:21:14 UTC) #22
scherkus (not reviewing)
7 years, 8 months ago (2013-04-18 20:23:41 UTC) #23
Message was sent while issue was closed.
Committed patchset #7 manually as r194993 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698