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

Side by Side Diff: Source/core/platform/mediastream/MediaStreamComponent.cpp

Issue 64593002: Move MediaStreamSource to platform/ (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: also move WebMediaConstraints.cpp Created 7 years, 1 month 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Ericsson AB. All rights reserved. 2 * Copyright (C) 2011 Ericsson AB. All rights reserved.
3 * Copyright (C) 2013 Google Inc. All rights reserved. 3 * Copyright (C) 2013 Google Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 16 matching lines...) Expand all
27 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
28 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 28 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30 */ 30 */
31 31
32 #include "config.h" 32 #include "config.h"
33 33
34 #include "core/platform/mediastream/MediaStreamComponent.h" 34 #include "core/platform/mediastream/MediaStreamComponent.h"
35 35
36 #include "platform/audio/AudioBus.h" 36 #include "platform/audio/AudioBus.h"
37 #include "core/platform/mediastream/MediaStreamSource.h"
38 #include "platform/UUID.h" 37 #include "platform/UUID.h"
38 #include "platform/mediastream/MediaStreamSource.h"
39 #include "public/platform/WebAudioSourceProvider.h" 39 #include "public/platform/WebAudioSourceProvider.h"
40 40
41 namespace WebCore { 41 namespace WebCore {
42 42
43 PassRefPtr<MediaStreamComponent> MediaStreamComponent::create(PassRefPtr<MediaSt reamSource> source) 43 PassRefPtr<MediaStreamComponent> MediaStreamComponent::create(PassRefPtr<MediaSt reamSource> source)
44 { 44 {
45 return adoptRef(new MediaStreamComponent(createCanonicalUUIDString(), 0, sou rce)); 45 return adoptRef(new MediaStreamComponent(createCanonicalUUIDString(), 0, sou rce));
46 } 46 }
47 47
48 PassRefPtr<MediaStreamComponent> MediaStreamComponent::create(const String& id, PassRefPtr<MediaStreamSource> source) 48 PassRefPtr<MediaStreamComponent> MediaStreamComponent::create(const String& id, PassRefPtr<MediaStreamSource> source)
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 blink::WebVector<float*> webAudioData(n); 88 blink::WebVector<float*> webAudioData(n);
89 for (size_t i = 0; i < n; ++i) 89 for (size_t i = 0; i < n; ++i)
90 webAudioData[i] = bus->channel(i)->mutableData(); 90 webAudioData[i] = bus->channel(i)->mutableData();
91 91
92 m_webAudioSourceProvider->provideInput(webAudioData, framesToProcess); 92 m_webAudioSourceProvider->provideInput(webAudioData, framesToProcess);
93 } 93 }
94 #endif // #if ENABLE(WEB_AUDIO) 94 #endif // #if ENABLE(WEB_AUDIO)
95 95
96 } // namespace WebCore 96 } // namespace WebCore
97 97
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698