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

Unified Diff: Source/platform/mediastream/MediaStreamComponent.h

Issue 604753003: Removing #ifdefs for WEB_AUDIO compile time flag. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/platform/mediastream/MediaStreamComponent.h
diff --git a/Source/platform/mediastream/MediaStreamComponent.h b/Source/platform/mediastream/MediaStreamComponent.h
index 084c623494f8fce967f1d1b6faa3e1375ce74bbd..0b4d970c6780ea45188f179bf17b3a2a7849b646 100644
--- a/Source/platform/mediastream/MediaStreamComponent.h
+++ b/Source/platform/mediastream/MediaStreamComponent.h
@@ -61,10 +61,8 @@ public:
void setEnabled(bool enabled) { m_enabled = enabled; }
bool muted() const { return m_muted; }
-#if ENABLE(WEB_AUDIO)
AudioSourceProvider* audioSourceProvider() { return &m_sourceProvider; }
void setSourceProvider(WebAudioSourceProvider* provider) { m_sourceProvider.wrap(provider); }
-#endif // ENABLE(WEB_AUDIO)
ExtraData* extraData() const { return m_extraData.get(); }
void setExtraData(PassOwnPtr<ExtraData> extraData) { m_extraData = extraData; }
@@ -72,7 +70,6 @@ public:
private:
MediaStreamComponent(const String& id, PassRefPtr<MediaStreamSource>);
-#if ENABLE(WEB_AUDIO)
// AudioSourceProviderImpl wraps a WebAudioSourceProvider::provideInput()
// calls into chromium to get a rendered audio stream.
@@ -97,7 +94,6 @@ private:
};
AudioSourceProviderImpl m_sourceProvider;
-#endif // ENABLE(WEB_AUDIO)
RefPtr<MediaStreamSource> m_source;
String m_id;

Powered by Google App Engine
This is Rietveld 408576698