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

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

Issue 2801083003: Rewrite references to "wtf/" to "platform/wtf/" in modules. (Closed)
Patch Set: Rebase again^3. Will try landing directly. Created 3 years, 8 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 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "modules/webaudio/ConstantSourceNode.h" 5 #include "modules/webaudio/ConstantSourceNode.h"
6 6
7 #include <algorithm>
7 #include "bindings/core/v8/ExceptionMessages.h" 8 #include "bindings/core/v8/ExceptionMessages.h"
8 #include "bindings/core/v8/ExceptionState.h" 9 #include "bindings/core/v8/ExceptionState.h"
9 #include "core/dom/ExceptionCode.h" 10 #include "core/dom/ExceptionCode.h"
10 #include "modules/webaudio/AudioNodeOutput.h" 11 #include "modules/webaudio/AudioNodeOutput.h"
11 #include "modules/webaudio/ConstantSourceOptions.h" 12 #include "modules/webaudio/ConstantSourceOptions.h"
12 #include "platform/audio/AudioUtilities.h" 13 #include "platform/audio/AudioUtilities.h"
13 #include "wtf/MathExtras.h" 14 #include "platform/wtf/MathExtras.h"
14 #include "wtf/StdLibExtras.h" 15 #include "platform/wtf/StdLibExtras.h"
15 #include <algorithm>
16 16
17 namespace blink { 17 namespace blink {
18 18
19 ConstantSourceHandler::ConstantSourceHandler(AudioNode& node, 19 ConstantSourceHandler::ConstantSourceHandler(AudioNode& node,
20 float sample_rate, 20 float sample_rate,
21 AudioParamHandler& offset) 21 AudioParamHandler& offset)
22 : AudioScheduledSourceHandler(kNodeTypeConstantSource, node, sample_rate), 22 : AudioScheduledSourceHandler(kNodeTypeConstantSource, node, sample_rate),
23 offset_(offset), 23 offset_(offset),
24 sample_accurate_values_(AudioUtilities::kRenderQuantumFrames) { 24 sample_accurate_values_(AudioUtilities::kRenderQuantumFrames) {
25 // A ConstantSource is always mono. 25 // A ConstantSource is always mono.
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 148
149 ConstantSourceHandler& ConstantSourceNode::GetConstantSourceHandler() const { 149 ConstantSourceHandler& ConstantSourceNode::GetConstantSourceHandler() const {
150 return static_cast<ConstantSourceHandler&>(Handler()); 150 return static_cast<ConstantSourceHandler&>(Handler());
151 } 151 }
152 152
153 AudioParam* ConstantSourceNode::offset() { 153 AudioParam* ConstantSourceNode::offset() {
154 return offset_; 154 return offset_;
155 } 155 }
156 156
157 } // namespace blink 157 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698