mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Trace and malloc_size_of workarounds for servo_media types
This commit is contained in:
parent
4602951656
commit
ba9dfb0293
3 changed files with 10 additions and 5 deletions
|
@ -17,13 +17,14 @@ use dom::oscillatornode::OscillatorNode;
|
|||
use dom_struct::dom_struct;
|
||||
use servo_media::ServoMedia;
|
||||
use servo_media::audio::graph::AudioGraph;
|
||||
use servo_media::audio::graph_impl::NodeId;
|
||||
use servo_media::audio::node::AudioNodeType;
|
||||
use std::rc::Rc;
|
||||
|
||||
#[dom_struct]
|
||||
pub struct BaseAudioContext {
|
||||
reflector_: Reflector,
|
||||
#[ignore_malloc_size_of = "XXX"]
|
||||
#[ignore_malloc_size_of = "servo_media"]
|
||||
audio_graph: AudioGraph,
|
||||
destination: Option<DomRoot<AudioDestinationNode>>,
|
||||
sample_rate: f32,
|
||||
|
@ -58,7 +59,7 @@ impl BaseAudioContext {
|
|||
context
|
||||
}
|
||||
|
||||
pub fn create_node_engine(&self, node_type: AudioNodeType) -> usize {
|
||||
pub fn create_node_engine(&self, node_type: AudioNodeType) -> NodeId {
|
||||
self.audio_graph.create_node(node_type)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue