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

Side by Side Diff: third_party/WebKit/Source/modules/webaudio/MediaStreamAudioDestinationNode.cpp

Issue 2425703002: Remove |remote| and |readonly| members of MediaStreamTrack (Closed)
Patch Set: Fixed webkit_tests Created 3 years, 9 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012, Google Inc. All rights reserved. 2 * Copyright (C) 2012, Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 AudioNode& node, 45 AudioNode& node,
46 size_t numberOfChannels) 46 size_t numberOfChannels)
47 : AudioBasicInspectorHandler(NodeTypeMediaStreamAudioDestination, 47 : AudioBasicInspectorHandler(NodeTypeMediaStreamAudioDestination,
48 node, 48 node,
49 node.context()->sampleRate(), 49 node.context()->sampleRate(),
50 numberOfChannels), 50 numberOfChannels),
51 m_mixBus(AudioBus::create(numberOfChannels, 51 m_mixBus(AudioBus::create(numberOfChannels,
52 AudioUtilities::kRenderQuantumFrames)) { 52 AudioUtilities::kRenderQuantumFrames)) {
53 m_source = MediaStreamSource::create( 53 m_source = MediaStreamSource::create(
54 "WebAudio-" + createCanonicalUUIDString(), MediaStreamSource::TypeAudio, 54 "WebAudio-" + createCanonicalUUIDString(), MediaStreamSource::TypeAudio,
55 "MediaStreamAudioDestinationNode", false, 55 "MediaStreamAudioDestinationNode", MediaStreamSource::ReadyStateLive,
56 MediaStreamSource::ReadyStateLive, true); 56 true);
57 MediaStreamSourceVector audioSources; 57 MediaStreamSourceVector audioSources;
58 audioSources.push_back(m_source.get()); 58 audioSources.push_back(m_source.get());
59 MediaStreamSourceVector videoSources; 59 MediaStreamSourceVector videoSources;
60 m_stream = MediaStream::create( 60 m_stream = MediaStream::create(
61 node.context()->getExecutionContext(), 61 node.context()->getExecutionContext(),
62 MediaStreamDescriptor::create(audioSources, videoSources)); 62 MediaStreamDescriptor::create(audioSources, videoSources));
63 MediaStreamCenter::instance().didCreateMediaStreamAndTracks( 63 MediaStreamCenter::instance().didCreateMediaStreamAndTracks(
64 m_stream->descriptor()); 64 m_stream->descriptor());
65 65
66 m_source->setAudioFormat(numberOfChannels, node.context()->sampleRate()); 66 m_source->setAudioFormat(numberOfChannels, node.context()->sampleRate());
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 node->handleChannelOptions(options, exceptionState); 180 node->handleChannelOptions(options, exceptionState);
181 181
182 return node; 182 return node;
183 } 183 }
184 184
185 MediaStream* MediaStreamAudioDestinationNode::stream() const { 185 MediaStream* MediaStreamAudioDestinationNode::stream() const {
186 return static_cast<MediaStreamAudioDestinationHandler&>(handler()).stream(); 186 return static_cast<MediaStreamAudioDestinationHandler&>(handler()).stream();
187 } 187 }
188 188
189 } // namespace blink 189 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698