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

Side by Side Diff: Source/modules/webaudio/AudioNodeInput.h

Issue 458923003: Remove AudioNode::isMarkedForDeletion from oilpan builds (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010, Google Inc. All rights reserved. 2 * Copyright (C) 2010, 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 27 matching lines...) Expand all
38 // An AudioNodeInput represents an input to an AudioNode and can be connected fr om one or more AudioNodeOutputs. 38 // An AudioNodeInput represents an input to an AudioNode and can be connected fr om one or more AudioNodeOutputs.
39 // In the case of multiple connections, the input will act as a unity-gain summi ng junction, mixing all the outputs. 39 // In the case of multiple connections, the input will act as a unity-gain summi ng junction, mixing all the outputs.
40 // The number of channels of the input's bus is the maximum of the number of cha nnels of all its connections. 40 // The number of channels of the input's bus is the maximum of the number of cha nnels of all its connections.
41 41
42 class AudioNodeInput FINAL : public AudioSummingJunction { 42 class AudioNodeInput FINAL : public AudioSummingJunction {
43 public: 43 public:
44 static PassOwnPtrWillBeRawPtr<AudioNodeInput> create(AudioNode&); 44 static PassOwnPtrWillBeRawPtr<AudioNodeInput> create(AudioNode&);
45 45
46 // AudioSummingJunction 46 // AudioSummingJunction
47 virtual void trace(Visitor*) OVERRIDE; 47 virtual void trace(Visitor*) OVERRIDE;
48 #if !ENABLE(OILPAN)
48 virtual bool canUpdateState() OVERRIDE { return !node().isMarkedForDeletion( ); } 49 virtual bool canUpdateState() OVERRIDE { return !node().isMarkedForDeletion( ); }
50 #endif
49 virtual void didUpdate() OVERRIDE; 51 virtual void didUpdate() OVERRIDE;
50 52
51 // Can be called from any thread. 53 // Can be called from any thread.
52 AudioNode& node() const { return *m_node; } 54 AudioNode& node() const { return *m_node; }
53 55
54 // Must be called with the context's graph lock. 56 // Must be called with the context's graph lock.
55 void connect(AudioNodeOutput&); 57 void connect(AudioNodeOutput&);
56 void disconnect(AudioNodeOutput&); 58 void disconnect(AudioNodeOutput&);
57 59
58 // disable() will take the output out of the active connections list and set aside in a disabled list. 60 // disable() will take the output out of the active connections list and set aside in a disabled list.
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 // Called from context's audio thread. 96 // Called from context's audio thread.
95 AudioBus* internalSummingBus(); 97 AudioBus* internalSummingBus();
96 void sumAllConnections(AudioBus* summingBus, size_t framesToProcess); 98 void sumAllConnections(AudioBus* summingBus, size_t framesToProcess);
97 99
98 RefPtr<AudioBus> m_internalSummingBus; 100 RefPtr<AudioBus> m_internalSummingBus;
99 }; 101 };
100 102
101 } // namespace blink 103 } // namespace blink
102 104
103 #endif // AudioNodeInput_h 105 #endif // AudioNodeInput_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698