diff options
author | Fernando Jiménez Moreno <ferjmoreno@gmail.com> | 2018-06-21 10:34:06 +0200 |
---|---|---|
committer | Fernando Jiménez Moreno <ferjmoreno@gmail.com> | 2018-07-30 14:21:38 +0200 |
commit | ba9dfb0293c6385753221ab7a1515a1c552594ce (patch) | |
tree | 613212f2b4b2e8200209b1350adf412c30e98d39 /components/script/dom/audionode.rs | |
parent | 460295165603b74cf8c77c53be6fb8fd813be943 (diff) | |
download | servo-ba9dfb0293c6385753221ab7a1515a1c552594ce.tar.gz servo-ba9dfb0293c6385753221ab7a1515a1c552594ce.zip |
Trace and malloc_size_of workarounds for servo_media types
Diffstat (limited to 'components/script/dom/audionode.rs')
-rw-r--r-- | components/script/dom/audionode.rs | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/components/script/dom/audionode.rs b/components/script/dom/audionode.rs index 56e3bdd25ba..2ef9b0635e6 100644 --- a/components/script/dom/audionode.rs +++ b/components/script/dom/audionode.rs @@ -10,10 +10,11 @@ use dom::bindings::reflector::Reflector; use dom::bindings::root::DomRoot; use dom::audioparam::AudioParam; use dom_struct::dom_struct; +use servo_media::audio::graph_impl::NodeId; use servo_media::audio::node::AudioNodeType; use std::cell::Cell; -// 32 is the minimum required by the spec for createBuffer() and +// 32 is the minimum required by the spec for createBuffer() and the deprecated // createScriptProcessor() and matches what is used by Blink and Gecko. // The limit protects against large memory allocations. pub static MAX_CHANNEL_COUNT: u32 = 32; @@ -21,7 +22,8 @@ pub static MAX_CHANNEL_COUNT: u32 = 32; #[dom_struct] pub struct AudioNode { reflector_: Reflector, - engine_id: usize, + #[ignore_malloc_size_of = "servo_media"] + node_id: NodeId, context: DomRoot<BaseAudioContext>, number_of_inputs: u32, number_of_outputs: u32, @@ -38,7 +40,7 @@ impl AudioNode { number_of_outputs: u32) -> AudioNode { AudioNode { reflector_: Reflector::new(), - engine_id: context.create_node_engine(node_type), + node_id: context.create_node_engine(node_type), context: DomRoot::from_ref(context), number_of_inputs, number_of_outputs, |