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

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

Issue 2389253002: reflow comments in modules/{webaudio,vr} (Closed)
Patch Set: . Created 4 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 18 matching lines...) Expand all
29 #include "platform/audio/AudioBus.h" 29 #include "platform/audio/AudioBus.h"
30 #include "platform/heap/Handle.h" 30 #include "platform/heap/Handle.h"
31 #include "wtf/HashSet.h" 31 #include "wtf/HashSet.h"
32 #include "wtf/Vector.h" 32 #include "wtf/Vector.h"
33 33
34 namespace blink { 34 namespace blink {
35 35
36 class AudioNodeOutput; 36 class AudioNodeOutput;
37 class DeferredTaskHandler; 37 class DeferredTaskHandler;
38 38
39 // An AudioSummingJunction represents a point where zero, one, or more AudioNode Outputs connect. 39 // An AudioSummingJunction represents a point where zero, one, or more
40 // AudioNodeOutputs connect.
40 41
41 class AudioSummingJunction { 42 class AudioSummingJunction {
42 public: 43 public:
43 virtual ~AudioSummingJunction(); 44 virtual ~AudioSummingJunction();
44 45
45 // Can be called from any thread. 46 // Can be called from any thread.
46 DeferredTaskHandler& deferredTaskHandler() const { 47 DeferredTaskHandler& deferredTaskHandler() const {
47 return *m_deferredTaskHandler; 48 return *m_deferredTaskHandler;
48 } 49 }
49 50
50 // This must be called whenever we modify m_outputs. 51 // This must be called whenever we modify m_outputs.
51 void changedOutputs(); 52 void changedOutputs();
52 53
53 // This copies m_outputs to m_renderingOutputs. Please see comments for these lists below. 54 // This copies m_outputs to m_renderingOutputs. Please see comments for these
54 // This must be called when we own the context's graph lock in the audio threa d at the very start or end of the render quantum. 55 // lists below. This must be called when we own the context's graph lock in
56 // the audio thread at the very start or end of the render quantum.
55 void updateRenderingState(); 57 void updateRenderingState();
56 58
57 // Rendering code accesses its version of the current connections here. 59 // Rendering code accesses its version of the current connections here.
58 unsigned numberOfRenderingConnections() const { 60 unsigned numberOfRenderingConnections() const {
59 return m_renderingOutputs.size(); 61 return m_renderingOutputs.size();
60 } 62 }
61 AudioNodeOutput* renderingOutput(unsigned i) { return m_renderingOutputs[i]; } 63 AudioNodeOutput* renderingOutput(unsigned i) { return m_renderingOutputs[i]; }
62 bool isConnected() const { return numberOfRenderingConnections() > 0; } 64 bool isConnected() const { return numberOfRenderingConnections() > 0; }
63 65
64 virtual void didUpdate() = 0; 66 virtual void didUpdate() = 0;
(...skipping 21 matching lines...) Expand all
86 // strong references to owners of these AudioNodeOutput. 88 // strong references to owners of these AudioNodeOutput.
87 Vector<AudioNodeOutput*> m_renderingOutputs; 89 Vector<AudioNodeOutput*> m_renderingOutputs;
88 90
89 // m_renderingStateNeedUpdating keeps track if m_outputs is modified. 91 // m_renderingStateNeedUpdating keeps track if m_outputs is modified.
90 bool m_renderingStateNeedUpdating; 92 bool m_renderingStateNeedUpdating;
91 }; 93 };
92 94
93 } // namespace blink 95 } // namespace blink
94 96
95 #endif // AudioSummingJunction_h 97 #endif // AudioSummingJunction_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698