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

Issue 10834236: Replace Pipeline::kEnded state and HasEnded() methods with renderer-specific bools. (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 Pipeline::kEnded state and HasEnded() methods with renderer-specific bools. The kEnded state was used to protect against the case where both renderers executed their ended callbacks at the same time, resulting in two tasks posted to the pipeline message loop but the first task would poll each renderer's HasEnded() method and execute the ended logic before the second task executed. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=150689

Patch Set 1 #

Total comments: 7

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+75 lines, -100 lines) Patch
M media/base/audio_renderer.h View 1 chunk +0 lines, -3 lines 0 comments Download
M media/base/media_log.cc View 1 2 chunks +4 lines, -4 lines 0 comments Download
M media/base/media_log_event.h View 1 1 chunk +3 lines, -3 lines 0 comments Download
M media/base/mock_filters.h View 2 chunks +0 lines, -2 lines 0 comments Download
M media/base/pipeline.h View 5 chunks +11 lines, -8 lines 0 comments Download
M media/base/pipeline.cc View 1 10 chunks +47 lines, -28 lines 0 comments Download
M media/base/pipeline_unittest.cc View 1 5 chunks +10 lines, -33 lines 0 comments Download
M media/base/video_renderer.h View 1 chunk +0 lines, -3 lines 0 comments Download
M media/filters/audio_renderer_impl.h View 1 chunk +0 lines, -1 line 0 comments Download
M media/filters/audio_renderer_impl.cc View 1 chunk +0 lines, -7 lines 0 comments Download
M media/filters/audio_renderer_impl_unittest.cc View 1 chunk +0 lines, -2 lines 0 comments Download
M media/filters/video_renderer_base.h View 1 chunk +0 lines, -1 line 0 comments Download
M media/filters/video_renderer_base.cc View 1 chunk +0 lines, -5 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
scherkus (not reviewing)
A remix of https://chromiumcodereview.appspot.com/10855041/ where I delete more code but introduce some bools! https://chromiumcodereview.appspot.com/10834236/diff/1/media/base/pipeline.cc File ...
8 years, 4 months ago (2012-08-08 20:59:58 UTC) #1
Ami GONE FROM CHROMIUM
http://codereview.chromium.org/10834236/diff/1/media/base/pipeline.cc File media/base/pipeline.cc (right): http://codereview.chromium.org/10834236/diff/1/media/base/pipeline.cc#newcode535 media/base/pipeline.cc:535: media_log_->AddEvent(media_log_->CreateEvent(MediaLogEvent::ENDED)); Why is it useful to media_log this twice? ...
8 years, 4 months ago (2012-08-08 21:48:26 UTC) #2
scherkus (not reviewing)
http://codereview.chromium.org/10834236/diff/1/media/base/pipeline.cc File media/base/pipeline.cc (right): http://codereview.chromium.org/10834236/diff/1/media/base/pipeline.cc#newcode535 media/base/pipeline.cc:535: media_log_->AddEvent(media_log_->CreateEvent(MediaLogEvent::ENDED)); On 2012/08/08 21:48:26, Ami Fischman wrote: > Why ...
8 years, 4 months ago (2012-08-08 22:28:34 UTC) #3
Ami GONE FROM CHROMIUM
lgtm
8 years, 4 months ago (2012-08-08 23:45:46 UTC) #4
acolwell GONE FROM CHROMIUM
LGTM
8 years, 4 months ago (2012-08-08 23:59:55 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/scherkus@chromium.org/10834236/14
8 years, 4 months ago (2012-08-09 00:52:46 UTC) #6
commit-bot: I haz the power
8 years, 4 months ago (2012-08-09 02:08:13 UTC) #7
Try job failure for 10834236-14 (retry) on linux_rel for step
"nacl_integration".
It's a second try, previously, steps "nacl_integration, interactive_ui_tests"
failed.
http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&...

Powered by Google App Engine
This is Rietveld 408576698