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

Issue 10830146: Replace RunInSeries() and RunInParallel() with CallbackSeries helper class. (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

Replace RunInSeries() and RunInParallel() with SerialRunner helper class. The biggest improvement here is that early termination of the callback series is accomplished by deleting the object. BUG=138583 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=149951

Patch Set 1 #

Total comments: 22

Patch Set 2 : comments #

Total comments: 11

Patch Set 3 : more hotness #

Total comments: 4

Patch Set 4 : boom #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+234 lines, -242 lines) Patch
M media/base/callback_util.h View 1 2 3 1 chunk +0 lines, -53 lines 0 comments Download
M media/base/callback_util.cc View 1 2 3 1 chunk +0 lines, -134 lines 0 comments Download
M media/base/pipeline.h View 1 2 3 4 chunks +11 lines, -10 lines 0 comments Download
M media/base/pipeline.cc View 1 2 3 9 chunks +55 lines, -43 lines 0 comments Download
A media/base/serial_runner.h View 1 2 3 1 chunk +76 lines, -0 lines 3 comments Download
A media/base/serial_runner.cc View 1 2 3 1 chunk +90 lines, -0 lines 0 comments Download
M media/media.gyp View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
scherkus (not reviewing)
PTAL both of you http://codereview.chromium.org/10830146/diff/1/media/base/callback_util.h File media/base/callback_util.h (right): http://codereview.chromium.org/10830146/diff/1/media/base/callback_util.h#newcode5 media/base/callback_util.h:5: #ifndef MEDIA_BASE_CALLBACK_UTIL_H_ I'll rename this ...
8 years, 4 months ago (2012-08-02 22:17:04 UTC) #1
Ami GONE FROM CHROMIUM
http://codereview.chromium.org/10830146/diff/1/media/base/callback_util.h File media/base/callback_util.h (right): http://codereview.chromium.org/10830146/diff/1/media/base/callback_util.h#newcode22 media/base/callback_util.h:22: typedef base::Callback<void(const base::Closure&)> ClosureFunc; That's a terrible name :) ...
8 years, 4 months ago (2012-08-03 04:49:57 UTC) #2
scherkus (not reviewing)
thanks for the review -- PTAL http://codereview.chromium.org/10830146/diff/1/media/base/callback_util.h File media/base/callback_util.h (right): http://codereview.chromium.org/10830146/diff/1/media/base/callback_util.h#newcode27 media/base/callback_util.h:27: void RunClosureFunc(const ClosureFunc& ...
8 years, 4 months ago (2012-08-03 18:08:50 UTC) #3
Ami GONE FROM CHROMIUM
LGTM % nits (and file rename) http://codereview.chromium.org/10830146/diff/7/media/base/callback_util.cc File media/base/callback_util.cc (right): http://codereview.chromium.org/10830146/diff/7/media/base/callback_util.cc#newcode44 media/base/callback_util.cc:44: callback_series->RunNextInSeries(PIPELINE_OK); Post this ...
8 years, 4 months ago (2012-08-03 19:29:01 UTC) #4
acolwell GONE FROM CHROMIUM
LGTM
8 years, 4 months ago (2012-08-03 20:15:18 UTC) #5
scherkus (not reviewing)
can you two take another quick look at SerialCallbackRunner::Queue? if we're 100% happy with things ...
8 years, 4 months ago (2012-08-03 20:19:04 UTC) #6
Ami GONE FROM CHROMIUM
http://codereview.chromium.org/10830146/diff/12002/media/base/callback_util.cc File media/base/callback_util.cc (right): http://codereview.chromium.org/10830146/diff/12002/media/base/callback_util.cc#newcode17 media/base/callback_util.cc:17: void RunBoundClosure( static http://codereview.chromium.org/10830146/diff/12002/media/base/callback_util.h File media/base/callback_util.h (right): http://codereview.chromium.org/10830146/diff/12002/media/base/callback_util.h#newcode57 media/base/callback_util.h:57: ...
8 years, 4 months ago (2012-08-03 20:31:43 UTC) #7
scherkus (not reviewing)
PTAL one mo' time http://codereview.chromium.org/10830146/diff/14001/media/base/serial_runner.h File media/base/serial_runner.h (right): http://codereview.chromium.org/10830146/diff/14001/media/base/serial_runner.h#newcode40 media/base/serial_runner.h:40: friend class SerialRunner; turns out ...
8 years, 4 months ago (2012-08-03 20:44:09 UTC) #8
Ami GONE FROM CHROMIUM
LGTM ship it! http://codereview.chromium.org/10830146/diff/14001/media/base/serial_runner.h File media/base/serial_runner.h (right): http://codereview.chromium.org/10830146/diff/14001/media/base/serial_runner.h#newcode43 media/base/serial_runner.h:43: bool empty() { return bound_fns_.empty(); } ...
8 years, 4 months ago (2012-08-03 20:48:23 UTC) #9
acolwell GONE FROM CHROMIUM
8 years, 4 months ago (2012-08-03 21:03:20 UTC) #10
LGTM

Powered by Google App Engine
This is Rietveld 408576698