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

Issue 18546: Implementation of Pipeline and FilterHost interfaces. This is a large change... (Closed)

Created:
11 years, 11 months ago by ralphl
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Implementation of Pipeline and FilterHost interfaces. This is a large change, but all of the objects are interrelated. I am also checking in a basic unit test that creates pipeline, and the data source hangs during initialization. The test sleeps one second and then stops the pipeline. Andrew has already done a first pass on this, and the code has come largely from our working experimental branch. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=8805

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Total comments: 52

Patch Set 5 : '' #

Patch Set 6 : '' #

Patch Set 7 : '' #

Patch Set 8 : '' #

Patch Set 9 : '' #

Total comments: 28

Patch Set 10 : '' #

Total comments: 7

Patch Set 11 : '' #

Patch Set 12 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+989 lines, -152 lines) Patch
M base/thread.h View 5 6 7 8 9 3 chunks +6 lines, -2 lines 0 comments Download
M base/thread.cc View 5 6 7 8 9 10 3 chunks +5 lines, -2 lines 0 comments Download
M base/thread_unittest.cc View 6 3 chunks +9 lines, -0 lines 0 comments Download
M media/base/factory.h View 1 2 3 4 5 6 3 chunks +6 lines, -5 lines 0 comments Download
M media/base/filter_host.h View 1 2 3 4 5 6 3 chunks +6 lines, -6 lines 0 comments Download
M media/base/filter_host_impl.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +60 lines, -9 lines 0 comments Download
M media/base/filter_host_impl.cc View 1 2 3 4 5 6 1 chunk +36 lines, -36 lines 0 comments Download
M media/base/filters.h View 1 2 3 4 5 6 9 chunks +39 lines, -9 lines 0 comments Download
M media/base/media_format.h View 1 2 3 4 5 6 2 chunks +7 lines, -2 lines 0 comments Download
M media/base/media_format.cc View 1 2 3 4 5 6 2 chunks +8 lines, -4 lines 0 comments Download
M media/base/pipeline.h View 1 2 3 4 5 6 4 chunks +17 lines, -13 lines 0 comments Download
M media/base/pipeline_impl.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +250 lines, -7 lines 0 comments Download
M media/base/pipeline_impl.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +460 lines, -57 lines 0 comments Download
A media/base/pipeline_impl_unittest.cc View 3 4 5 6 7 8 9 1 chunk +60 lines, -0 lines 0 comments Download
M media/build/media_unittests.vcproj View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download
M media/media.xcodeproj/project.pbxproj View 5 chunks +14 lines, -0 lines 0 comments Download
M media/media_unittests.scons View 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
ralphl
Actual code behind the Pipeline and FilterHost interfaces
11 years, 11 months ago (2009-01-23 20:32:59 UTC) #1
brettw
First pass. The code looks very nice overall. http://codereview.chromium.org/18546/diff/229/55 File media/base/filter_host_impl.h (right): http://codereview.chromium.org/18546/diff/229/55#newcode51 Line 51: ...
11 years, 11 months ago (2009-01-24 19:55:36 UTC) #2
scherkus (not reviewing)
Little nits. Looking great, though! http://codereview.chromium.org/18546/diff/229/55 File media/base/filter_host_impl.h (right): http://codereview.chromium.org/18546/diff/229/55#newcode49 Line 49: // this method ...
11 years, 11 months ago (2009-01-26 19:22:52 UTC) #3
cpu_(ooo_6.6-7.5)
http://codereview.chromium.org/18546/diff/229/55 File media/base/filter_host_impl.h (right): http://codereview.chromium.org/18546/diff/229/55#newcode55 Line 55: return true; space between Filter and * http://codereview.chromium.org/18546/diff/229/55#newcode78 ...
11 years, 11 months ago (2009-01-26 19:34:27 UTC) #4
ralphl
OK, I have fixed everything that anyone pointed out. I added an "IsRunning()" method to ...
11 years, 11 months ago (2009-01-27 00:11:30 UTC) #5
scherkus (not reviewing)
Mostly vertical line spacing nits. In general, functions are separated by one line of white ...
11 years, 11 months ago (2009-01-27 20:28:47 UTC) #6
ralphl
Fixed all of Andrew's comments http://codereview.chromium.org/18546/diff/286/153 File media/base/pipeline_impl.cc (right): http://codereview.chromium.org/18546/diff/286/153#newcode279 Line 279: // Add ourselves ...
11 years, 11 months ago (2009-01-27 21:06:40 UTC) #7
scherkus (not reviewing)
Just one question, otherwise LGTM pending what brettw and cpu have to say. http://codereview.chromium.org/18546/diff/172/178 File ...
11 years, 11 months ago (2009-01-27 21:21:42 UTC) #8
brettw
LGTM http://codereview.chromium.org/18546/diff/172/185 File base/thread.cc (right): http://codereview.chromium.org/18546/diff/172/185#newcode32 Line 32: explicit StartupData(const Options& opt) : options(opt), When ...
11 years, 11 months ago (2009-01-27 23:36:32 UTC) #9
ralphl
11 years, 11 months ago (2009-01-28 00:27:47 UTC) #10
OK, I fixed the final issues, and we fixed a problem with mac builds.  I'm going
to check this in.

http://codereview.chromium.org/18546/diff/172/185
File base/thread.cc (right):

http://codereview.chromium.org/18546/diff/172/185#newcode32
Line 32: explicit StartupData(const Options& opt) : options(opt),
On 2009/01/27 23:36:32, brettw wrote:
> When you have to wrap initializers, put the colon on the next line indented 4
> spaces.

Done.

http://codereview.chromium.org/18546/diff/172/178
File media/base/pipeline_impl.cc (right):

http://codereview.chromium.org/18546/diff/172/178#newcode119
Line 119: if (pipeline_thread_ && initialized_ && PIPELINE_OK == error_ &&
On 2009/01/27 21:21:42, scherkus wrote:
> Can you use OkToCallThread() here?

Done.

http://codereview.chromium.org/18546/diff/172/178#newcode128
Line 128: duration_         = base::TimeDelta::FromMicroseconds(0);
On 2009/01/27 23:36:32, brettw wrote:
> Feel free to just say base::TimeDelta() which is guaranteed to make a 0 delta.

Done.

http://codereview.chromium.org/18546/diff/172/178#newcode128
Line 128: duration_         = base::TimeDelta::FromMicroseconds(0);
On 2009/01/27 23:36:32, brettw wrote:
> Feel free to just say base::TimeDelta() which is guaranteed to make a 0 delta.

Done.

Powered by Google App Engine
This is Rietveld 408576698