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

Issue 10823261: Remove Pipeline::IsInitialized() and replace stop_pending_ with checks for stop_cb_. (Closed)

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

Description

Remove Pipeline::IsInitialized() and replace stop_pending_ with checks for stop_cb_. Unfortunately until bug 110228 is fixed I have to keep IsInitializedForTesting() around but atleast it enforces that state_ is accessed on the same thread instead of locking. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=150899

Patch Set 1 #

Patch Set 2 : fix .h #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+43 lines, -81 lines) Patch
M media/base/pipeline.h View 1 6 chunks +7 lines, -25 lines 3 comments Download
M media/base/pipeline.cc View 13 chunks +30 lines, -36 lines 0 comments Download
M media/base/pipeline_unittest.cc View 20 chunks +6 lines, -20 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
scherkus (not reviewing)
8 years, 4 months ago (2012-08-09 17:40:37 UTC) #1
scherkus (not reviewing)
http://codereview.chromium.org/10823261/diff/6/media/base/pipeline.h File media/base/pipeline.h (right): http://codereview.chromium.org/10823261/diff/6/media/base/pipeline.h#newcode206 media/base/pipeline.h:206: bool IsInitializedForTesting(); FYI this gets removed in follow-up CL ...
8 years, 4 months ago (2012-08-09 19:27:10 UTC) #2
Ami GONE FROM CHROMIUM
lgtm http://codereview.chromium.org/10823261/diff/6/media/base/pipeline.h File media/base/pipeline.h (right): http://codereview.chromium.org/10823261/diff/6/media/base/pipeline.h#newcode108 media/base/pipeline.h:108: // Stop() has completed: I thought error during ...
8 years, 4 months ago (2012-08-09 20:46:23 UTC) #3
scherkus (not reviewing)
8 years, 4 months ago (2012-08-09 21:02:59 UTC) #4
http://codereview.chromium.org/10823261/diff/6/media/base/pipeline.h
File media/base/pipeline.h (right):

http://codereview.chromium.org/10823261/diff/6/media/base/pipeline.h#newcode108
media/base/pipeline.h:108: // Stop() has completed:
On 2012/08/09 20:46:23, Ami Fischman wrote:
> I thought error during Stop() doesn't fire error_cb.  IOW s/completed/has been
> called/ above?

You are correct but as discussed offline this is as accurate of a guarantee
we're willing to make (i.e., error/ended _could_ fire after Stop() is called
since Stop() has to queue a task on the pipeline msg loop)

Powered by Google App Engine
This is Rietveld 408576698