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

Unified Diff: third_party/WebKit/Source/modules/webaudio/AudioWorkletGlobalScope.h

Issue 2793593002: AudioWorklet prototype
Patch Set: Merge changes, AudioParam bug fix Created 3 years, 5 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: third_party/WebKit/Source/modules/webaudio/AudioWorkletGlobalScope.h
diff --git a/third_party/WebKit/Source/modules/webaudio/AudioWorkletGlobalScope.h b/third_party/WebKit/Source/modules/webaudio/AudioWorkletGlobalScope.h
index 2935d973f66e1dfd41c9e490ec3fd86de05a0b5a..40f69e16aadd5523d7b4ee2ab803dc02735bb40e 100644
--- a/third_party/WebKit/Source/modules/webaudio/AudioWorkletGlobalScope.h
+++ b/third_party/WebKit/Source/modules/webaudio/AudioWorkletGlobalScope.h
@@ -10,6 +10,7 @@
#include "core/workers/ThreadedWorkletGlobalScope.h"
#include "modules/ModulesExport.h"
#include "platform/bindings/ScriptWrappable.h"
+#include "platform/audio/AudioArray.h"
namespace blink {
@@ -46,7 +47,8 @@ class MODULES_EXPORT AudioWorkletGlobalScope final
// AudioWorkletProcessor, along with given AudioBuffer from the audio graph.
bool Process(AudioWorkletProcessor*,
AudioBuffer* input_buffer,
- AudioBuffer* output_buffer);
+ AudioBuffer* output_buffer,
+ HashMap<String, AudioFloatArray*> audio_param_data_map);
AudioWorkletProcessorDefinition* FindDefinition(const String& name);
@@ -71,6 +73,12 @@ class MODULES_EXPORT AudioWorkletGlobalScope final
ProcessorInstances processor_instances_;
};
+DEFINE_TYPE_CASTS(AudioWorkletGlobalScope,
+ ExecutionContext,
+ context,
+ context->IsAudioWorkletGlobalScope(),
+ context.IsAudioWorkletGlobalScope());
+
} // namespace blink
#endif // AudioWorkletGlobalScope_h

Powered by Google App Engine
This is Rietveld 408576698