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

Issue 5744002: Refactor PipelineImpl to use CompositeFilter to manage Filter state transitions. (Closed)

Created:
10 years ago by acolwell GONE FROM CHROMIUM
Modified:
9 years, 6 months ago
CC:
chromium-reviews, vrk (LEFT CHROMIUM), fbarchard, Alpha Left Google, ddorwin+watch_chromium.org, sjl, acolwell GONE FROM CHROMIUM, annacc, darin-cc_chromium.org, awong, Paweł Hajdan Jr., scherkus (not reviewing)
Visibility:
Public.

Description

Refactor PipelineImpl to use CompositeFilter to manage Filter state transitions. BUG=54110 TEST=media_unittests CompositeFilterTest.* Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=70267 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=70527

Patch Set 1 #

Patch Set 2 : Fix TestThreadTermination so it doesn't reference a deleted pointer. #

Patch Set 3 : Add explicit MessageLoop usage to make sure code is running on the expected threads. #

Total comments: 46

Patch Set 4 : Applied code review suggestions. #

Total comments: 12

Patch Set 5 : Applied more CR fixes #

Patch Set 6 : Style fixes that were left out of last update #

Total comments: 2

Patch Set 7 : Mark MediaUILayoutTest flaky for windows #

Patch Set 8 : Add temporary hack to handle filter init errors that happen on different thread. #

Patch Set 9 : Fixed null pointer exception caused by DisableAudioRenderer() calls during pipeline init. #

Patch Set 10 : Change base/thread.h -> base/threading/thread.h #

Total comments: 4

Patch Set 11 : Fix CR nits & remove dead code. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1766 lines, -124 lines) Patch
M chrome/browser/media_uitest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
A media/base/composite_filter.h View 1 2 3 4 5 6 7 8 9 1 chunk +165 lines, -0 lines 0 comments Download
A media/base/composite_filter.cc View 1 2 3 4 5 6 7 1 chunk +603 lines, -0 lines 0 comments Download
A media/base/composite_filter_unittest.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +799 lines, -0 lines 0 comments Download
M media/base/mock_filters.h View 1 2 3 4 5 6 4 chunks +41 lines, -5 lines 0 comments Download
M media/base/mock_filters.cc View 1 2 3 1 chunk +19 lines, -0 lines 0 comments Download
M media/base/pipeline.h View 1 chunk +2 lines, -0 lines 0 comments Download
M media/base/pipeline_impl.h View 1 2 3 4 5 6 7 8 9 4 chunks +6 lines, -14 lines 0 comments Download
M media/base/pipeline_impl.cc View 1 2 3 4 5 6 7 8 9 10 18 chunks +73 lines, -100 lines 0 comments Download
M media/base/pipeline_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +52 lines, -4 lines 0 comments Download
M media/media.gyp View 1 2 3 4 5 6 2 chunks +3 lines, -0 lines 0 comments Download
M webkit/glue/webmediaplayer_impl.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
acolwell GONE FROM CHROMIUM
10 years ago (2010-12-10 00:05:13 UTC) #1
acolwell GONE FROM CHROMIUM
Fixed TestThreadTermination unit test.
10 years ago (2010-12-10 20:07:41 UTC) #2
acolwell GONE FROM CHROMIUM
- Added explicit MessageLoop usage to make sure code runs on the proper thread. - ...
10 years ago (2010-12-14 17:58:58 UTC) #3
scherkus (not reviewing)
phew that was quite the review sorry for the delay! biggest things: - Does CompositeFilter ...
10 years ago (2010-12-15 16:44:02 UTC) #4
acolwell GONE FROM CHROMIUM
Responses to some comments. Code changes will be sent out later today http://codereview.chromium.org/5744002/diff/7001/media/base/composite_filter.cc File media/base/composite_filter.cc ...
10 years ago (2010-12-15 18:20:11 UTC) #5
scherkus (not reviewing)
Thanks for speedy reply! Responded to a few comments http://codereview.chromium.org/5744002/diff/7001/media/base/composite_filter.cc File media/base/composite_filter.cc (right): http://codereview.chromium.org/5744002/diff/7001/media/base/composite_filter.cc#newcode491 media/base/composite_filter.cc:491: ...
10 years ago (2010-12-15 18:57:43 UTC) #6
acolwell GONE FROM CHROMIUM
Changes related to Andrew's CR comments
10 years ago (2010-12-15 21:08:26 UTC) #7
scherkus (not reviewing)
more comments not everything needs to be addressed in this CL but we should figure ...
10 years ago (2010-12-16 18:43:39 UTC) #8
acolwell GONE FROM CHROMIUM
New patch posted with suggested fixes http://codereview.chromium.org/5744002/diff/24001/media/base/composite_filter_unittest.cc File media/base/composite_filter_unittest.cc (right): http://codereview.chromium.org/5744002/diff/24001/media/base/composite_filter_unittest.cc#newcode83 media/base/composite_filter_unittest.cc:83: // Run the ...
10 years ago (2010-12-20 17:43:21 UTC) #9
scherkus (not reviewing)
LGTM w/ nits thanks again for doing this! http://codereview.chromium.org/5744002/diff/38001/media/base/composite_filter_unittest.cc File media/base/composite_filter_unittest.cc (right): http://codereview.chromium.org/5744002/diff/38001/media/base/composite_filter_unittest.cc#newcode229 media/base/composite_filter_unittest.cc:229: EXPECT_TRUE(filter_1_callback_ ...
10 years ago (2010-12-20 20:36:21 UTC) #10
acolwell GONE FROM CHROMIUM
Fixed null pointer exception caused by DisableAudioRenderer() calls during pipeline initialization. This can happen if ...
9 years, 11 months ago (2010-12-30 17:36:07 UTC) #11
scherkus (not reviewing)
super tiny nits but LGTM thanks for adding the test! http://codereview.chromium.org/5744002/diff/61001/media/base/pipeline_impl.cc File media/base/pipeline_impl.cc (right): http://codereview.chromium.org/5744002/diff/61001/media/base/pipeline_impl.cc#newcode727 ...
9 years, 11 months ago (2011-01-05 01:28:38 UTC) #12
acolwell GONE FROM CHROMIUM
9 years, 11 months ago (2011-01-05 16:27:46 UTC) #13
fixed nits

http://codereview.chromium.org/5744002/diff/61001/media/base/pipeline_impl.cc
File media/base/pipeline_impl.cc (right):

http://codereview.chromium.org/5744002/diff/61001/media/base/pipeline_impl.cc...
media/base/pipeline_impl.cc:727:
pipeline_filter_->SetPlaybackRate(playback_rate);
On 2011/01/05 01:28:38, scherkus wrote:
> nit: looks like this file uses { } for one-line if statements, and your other
> pipeline_filter_ if statement uses it as well, so I guess let's go with { }

Done.

http://codereview.chromium.org/5744002/diff/61001/media/base/pipeline_impl_un...
File media/base/pipeline_impl_unittest.cc (right):

http://codereview.chromium.org/5744002/diff/61001/media/base/pipeline_impl_un...
media/base/pipeline_impl_unittest.cc:184: 
On 2011/01/05 01:28:38, scherkus wrote:
> nit: remove blank line

Done.

Powered by Google App Engine
This is Rietveld 408576698