Chromium Code Reviews| Index: media/blink/webaudiosourceprovider_impl.h |
| diff --git a/media/blink/webaudiosourceprovider_impl.h b/media/blink/webaudiosourceprovider_impl.h |
| index 6bf3b0aa9e379b9811e06598a53c97186fb74b47..6ed677931595d082db0744e14e244c086576ed41 100644 |
| --- a/media/blink/webaudiosourceprovider_impl.h |
| +++ b/media/blink/webaudiosourceprovider_impl.h |
| @@ -72,6 +72,12 @@ class MEDIA_BLINK_EXPORT WebAudioSourceProviderImpl |
| void SetCopyAudioCallback(const CopyAudioCB& callback); |
| void ClearCopyAudioCallback(); |
| + base::WeakPtr<WebAudioSourceProviderImpl> AsWeakPtr() { |
| + return weak_factory_.GetWeakPtr(); |
| + } |
| + |
| + int RenderForTesting(AudioBus* audio_bus); |
|
miu
2016/05/19 22:44:30
Not sure you should have made this public. Instead
mcasas
2016/05/19 23:57:55
provideInput() is only available for the render-to
|
| + |
| private: |
| friend class WebAudioSourceProviderImplTest; |
| ~WebAudioSourceProviderImpl() override; |
| @@ -79,8 +85,6 @@ class MEDIA_BLINK_EXPORT WebAudioSourceProviderImpl |
| // Calls setFormat() on |client_| from the Blink renderer thread. |
| void OnSetFormat(); |
| - int RenderForTesting(AudioBus* audio_bus); |
| - |
| // Used to keep the volume across reconfigurations. |
| double volume_; |