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

Unified Diff: media/blink/webaudiosourceprovider_impl.cc

Issue 2836293002: Introduce AudioRendererSink::IsOptimizedForHardwareParameters (Closed)
Patch Set: Rename to IsOptimizedForHardwareParameters and set some to false Created 3 years, 7 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
« no previous file with comments | « media/blink/webaudiosourceprovider_impl.h ('k') | media/renderers/audio_renderer_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/blink/webaudiosourceprovider_impl.cc
diff --git a/media/blink/webaudiosourceprovider_impl.cc b/media/blink/webaudiosourceprovider_impl.cc
index 4cace4314b4203352d45914770eafa38930597a3..28a4057258cc3eb798a705d2342072d36e3112a6 100644
--- a/media/blink/webaudiosourceprovider_impl.cc
+++ b/media/blink/webaudiosourceprovider_impl.cc
@@ -258,6 +258,10 @@ OutputDeviceInfo WebAudioSourceProviderImpl::GetOutputDeviceInfo() {
: OutputDeviceInfo(OUTPUT_DEVICE_STATUS_ERROR_NOT_FOUND);
}
+bool WebAudioSourceProviderImpl::IsOptimizedForHardwareParameters() {
+ return client_ ? false : true;
o1ka 2017/05/16 10:31:19 Access to |client_| is guarded everywhere by |sink
flim-chromium 2017/05/16 11:04:05 Thanks for spotting this! I think it would actuall
+}
+
bool WebAudioSourceProviderImpl::CurrentThreadIsRenderingThread() {
NOTIMPLEMENTED();
return false;
« no previous file with comments | « media/blink/webaudiosourceprovider_impl.h ('k') | media/renderers/audio_renderer_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698