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

Side by Side Diff: Source/modules/webaudio/OscillatorNode.cpp

Issue 614373007: Oilpan: Remove adoptRefCountedGarbageCollected (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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 | Annotate | Revision Log
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 25 matching lines...) Expand all
36 #include "wtf/MathExtras.h" 36 #include "wtf/MathExtras.h"
37 #include "wtf/StdLibExtras.h" 37 #include "wtf/StdLibExtras.h"
38 #include <algorithm> 38 #include <algorithm>
39 39
40 namespace blink { 40 namespace blink {
41 41
42 using namespace VectorMath; 42 using namespace VectorMath;
43 43
44 OscillatorNode* OscillatorNode::create(AudioContext* context, float sampleRate) 44 OscillatorNode* OscillatorNode::create(AudioContext* context, float sampleRate)
45 { 45 {
46 return adoptRefCountedGarbageCollectedWillBeNoop(new OscillatorNode(context, sampleRate)); 46 return new OscillatorNode(context, sampleRate);
47 } 47 }
48 48
49 OscillatorNode::OscillatorNode(AudioContext* context, float sampleRate) 49 OscillatorNode::OscillatorNode(AudioContext* context, float sampleRate)
50 : AudioScheduledSourceNode(context, sampleRate) 50 : AudioScheduledSourceNode(context, sampleRate)
51 , m_type(SINE) 51 , m_type(SINE)
52 , m_firstRender(true) 52 , m_firstRender(true)
53 , m_virtualReadIndex(0) 53 , m_virtualReadIndex(0)
54 , m_phaseIncrements(AudioNode::ProcessingSizeInFrames) 54 , m_phaseIncrements(AudioNode::ProcessingSizeInFrames)
55 , m_detuneValues(AudioNode::ProcessingSizeInFrames) 55 , m_detuneValues(AudioNode::ProcessingSizeInFrames)
56 { 56 {
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after
348 { 348 {
349 visitor->trace(m_frequency); 349 visitor->trace(m_frequency);
350 visitor->trace(m_detune); 350 visitor->trace(m_detune);
351 visitor->trace(m_periodicWave); 351 visitor->trace(m_periodicWave);
352 AudioScheduledSourceNode::trace(visitor); 352 AudioScheduledSourceNode::trace(visitor);
353 } 353 }
354 354
355 } // namespace blink 355 } // namespace blink
356 356
357 #endif // ENABLE(WEB_AUDIO) 357 #endif // ENABLE(WEB_AUDIO)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698