| Index: third_party/WebKit/Source/modules/webaudio/BaseAudioContext.h
|
| diff --git a/third_party/WebKit/Source/modules/webaudio/BaseAudioContext.h b/third_party/WebKit/Source/modules/webaudio/BaseAudioContext.h
|
| index 028ff3e9bb670b6388e9f3fdcf543aca528f0304..c4df50638c353ad18325440682d5a6f4b5567160 100644
|
| --- a/third_party/WebKit/Source/modules/webaudio/BaseAudioContext.h
|
| +++ b/third_party/WebKit/Source/modules/webaudio/BaseAudioContext.h
|
| @@ -80,6 +80,7 @@ class ScriptState;
|
| class SecurityOrigin;
|
| class StereoPannerNode;
|
| class WaveShaperNode;
|
| +class WebAudioLatencyHint;
|
|
|
| // BaseAudioContext is the cornerstone of the web audio API and all AudioNodes
|
| // are created from it. For thread safety between the audio thread and the main
|
| @@ -100,7 +101,9 @@ class MODULES_EXPORT BaseAudioContext : public EventTargetWithInlineData,
|
| enum AudioContextState { Suspended, Running, Closed };
|
|
|
| // Create an AudioContext for rendering to the audio hardware.
|
| - static BaseAudioContext* create(Document&, ExceptionState&);
|
| + static BaseAudioContext* create(Document&,
|
| + const WebAudioLatencyHint&,
|
| + ExceptionState&);
|
|
|
| ~BaseAudioContext() override;
|
|
|
| @@ -305,7 +308,7 @@ class MODULES_EXPORT BaseAudioContext : public EventTargetWithInlineData,
|
| void maybeRecordStartAttempt();
|
|
|
| protected:
|
| - explicit BaseAudioContext(Document*);
|
| + explicit BaseAudioContext(Document*, const WebAudioLatencyHint&);
|
| BaseAudioContext(Document*,
|
| unsigned numberOfChannels,
|
| size_t numberOfFrames,
|
|
|