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

Issue 11830004: Refactor content::RenderAudioSourceProvider as webkit_media::WebAudioSourceProviderImpl. (Closed)

Created:
7 years, 11 months ago by scherkus (not reviewing)
Modified:
7 years, 11 months ago
Reviewers:
DaleCurtis, miu
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, feature-media-reviews_chromium.org
Visibility:
Public.

Description

Refactor content::RenderAudioSourceProvider as webkit_media::WebAudioSourceProviderImpl. Doing so prevents the silliness of passing the same pointer into WebMediaPlayerParams twice. Furthermore, the switch-checking logic and render view ID code is better contained as part of RenderViewImpl as opposed to being stuffed inside RenderAudioSourceProvider's constructor. BUG=136442 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=175948

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+208 lines, -348 lines) Patch
M content/content_renderer.gypi View 1 chunk +0 lines, -2 lines 0 comments Download
D content/renderer/media/render_audiosourceprovider.h View 1 chunk +0 lines, -87 lines 0 comments Download
D content/renderer/media/render_audiosourceprovider.cc View 1 chunk +0 lines, -172 lines 0 comments Download
M content/renderer/render_view_impl.cc View 1 4 chunks +27 lines, -10 lines 0 comments Download
A + webkit/media/webaudiosourceprovider_impl.h View 1 3 chunks +32 lines, -40 lines 1 comment Download
A webkit/media/webaudiosourceprovider_impl.cc View 1 1 chunk +136 lines, -0 lines 2 comments Download
M webkit/media/webkit_media.gypi View 1 chunk +2 lines, -0 lines 0 comments Download
M webkit/media/webmediaplayer_impl.h View 1 2 chunks +3 lines, -7 lines 0 comments Download
M webkit/media/webmediaplayer_impl.cc View 1 3 chunks +5 lines, -8 lines 0 comments Download
M webkit/media/webmediaplayer_params.h View 3 chunks +0 lines, -17 lines 0 comments Download
M webkit/media/webmediaplayer_params.cc View 1 chunk +1 line, -3 lines 0 comments Download
M webkit/support/webkit_support.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M webkit/tools/test_shell/test_webview_delegate.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 4 (0 generated)
scherkus (not reviewing)
Got tired of dealing w/ the duplicate AudioSourceProvider and AudioRendererSink pointers and the resulting lifetime ...
7 years, 11 months ago (2013-01-08 22:00:57 UTC) #1
miu
lgtm https://codereview.chromium.org/11830004/diff/2013/webkit/media/webaudiosourceprovider_impl.cc File webkit/media/webaudiosourceprovider_impl.cc (right): https://codereview.chromium.org/11830004/diff/2013/webkit/media/webaudiosourceprovider_impl.cc#newcode84 webkit/media/webaudiosourceprovider_impl.cc:84: is_running_ = true; Weirdness in existing code (not ...
7 years, 11 months ago (2013-01-09 18:48:35 UTC) #2
DaleCurtis
lgtm
7 years, 11 months ago (2013-01-09 21:51:38 UTC) #3
scherkus (not reviewing)
7 years, 11 months ago (2013-01-09 23:16:06 UTC) #4
https://codereview.chromium.org/11830004/diff/2013/webkit/media/webaudiosourc...
File webkit/media/webaudiosourceprovider_impl.cc (right):

https://codereview.chromium.org/11830004/diff/2013/webkit/media/webaudiosourc...
webkit/media/webaudiosourceprovider_impl.cc:84: is_running_ = true;
On 2013/01/09 18:48:35, Yuri wrote:
> Weirdness in existing code (not part of your change, but...): Perhaps you
should
> remove this statement here, since calling sink_->Start() doesn't mean the sink
> is consuming audio yet.

Discussed offline, ARS::Start() does indeed start playback! Play() is for after
calling Pause()

Powered by Google App Engine
This is Rietveld 408576698