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

Unified Diff: third_party/WebKit/public/platform/Platform.h

Issue 2501863003: Support for AudioContextOptions latencyHint. (Closed)
Patch Set: Check all LatencyHints WebAudioDeviceImpl test. Created 4 years 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: third_party/WebKit/public/platform/Platform.h
diff --git a/third_party/WebKit/public/platform/Platform.h b/third_party/WebKit/public/platform/Platform.h
index 4264a4cd22d5e6a7a3757f12025b6c572370b9dc..bdca0f6dc07086f2f02830e990dde36ae1e05adc 100644
--- a/third_party/WebKit/public/platform/Platform.h
+++ b/third_party/WebKit/public/platform/Platform.h
@@ -71,6 +71,7 @@ namespace blink {
class InterfaceProvider;
class WebAudioBus;
+class WebAudioLatencyHint;
class WebBlobRegistry;
class WebCanvasCaptureHandler;
class WebClipboard;
@@ -172,13 +173,13 @@ class BLINK_PLATFORM_EXPORT Platform {
// Creates a device for audio I/O.
// Pass in (numberOfInputChannels > 0) if live/local audio input is desired.
- virtual WebAudioDevice* createAudioDevice(size_t bufferSize,
- unsigned numberOfInputChannels,
- unsigned numberOfChannels,
- double sampleRate,
- WebAudioDevice::RenderCallback*,
- const WebString& deviceId,
- const WebSecurityOrigin&) {
+ virtual WebAudioDevice* createAudioDevice(
+ unsigned numberOfInputChannels,
+ unsigned numberOfChannels,
+ const WebAudioLatencyHint& latencyHint,
+ WebAudioDevice::RenderCallback*,
+ const WebString& deviceId,
+ const WebSecurityOrigin&) {
return nullptr;
}

Powered by Google App Engine
This is Rietveld 408576698