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

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

Issue 1363143003: [Oilpan] Move MediaStream{Source|Component|Descriptor} to Oilpan heap (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Revert changes in PS8 Created 5 years, 2 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 // AudioHandler. 47 // AudioHandler.
48 void process(size_t framesToProcess) override; 48 void process(size_t framesToProcess) override;
49 49
50 private: 50 private:
51 MediaStreamAudioDestinationHandler(AudioNode&, size_t numberOfChannels); 51 MediaStreamAudioDestinationHandler(AudioNode&, size_t numberOfChannels);
52 // As an audio source, we will never propagate silence. 52 // As an audio source, we will never propagate silence.
53 bool propagatesSilence() const override { return false; } 53 bool propagatesSilence() const override { return false; }
54 54
55 // This Persistent doesn't make a reference cycle. 55 // This Persistent doesn't make a reference cycle.
56 Persistent<MediaStream> m_stream; 56 Persistent<MediaStream> m_stream;
57 RefPtr<MediaStreamSource> m_source; 57 Persistent<MediaStreamSource> m_source;
58 RefPtr<AudioBus> m_mixBus; 58 RefPtr<AudioBus> m_mixBus;
59 }; 59 };
60 60
61 class MediaStreamAudioDestinationNode final : public AudioBasicInspectorNode { 61 class MediaStreamAudioDestinationNode final : public AudioBasicInspectorNode {
62 DEFINE_WRAPPERTYPEINFO(); 62 DEFINE_WRAPPERTYPEINFO();
63 public: 63 public:
64 static MediaStreamAudioDestinationNode* create(AbstractAudioContext&, size_t numberOfChannels); 64 static MediaStreamAudioDestinationNode* create(AbstractAudioContext&, size_t numberOfChannels);
65 MediaStream* stream() const; 65 MediaStream* stream() const;
66 66
67 private: 67 private:
68 MediaStreamAudioDestinationNode(AbstractAudioContext&, size_t numberOfChanne ls); 68 MediaStreamAudioDestinationNode(AbstractAudioContext&, size_t numberOfChanne ls);
69 }; 69 };
70 70
71 } // namespace blink 71 } // namespace blink
72 72
73 #endif // ENABLE(WEB_AUDIO) 73 #endif // ENABLE(WEB_AUDIO)
74 74
75 #endif // MediaStreamAudioDestinationNode_h 75 #endif // MediaStreamAudioDestinationNode_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698