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

Unified Diff: Source/modules/webaudio/PannerNode.h

Issue 205173002: Move webaudio to oilpan (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: WIP Created 6 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: Source/modules/webaudio/PannerNode.h
diff --git a/Source/modules/webaudio/PannerNode.h b/Source/modules/webaudio/PannerNode.h
index 2a29d01f6bdbfe4cd74cf4abf4e51118ca50a1c8..8a35a23d01a380b7572683951ba19522bf5d99e6 100644
--- a/Source/modules/webaudio/PannerNode.h
+++ b/Source/modules/webaudio/PannerNode.h
@@ -62,9 +62,9 @@ public:
EXPONENTIAL_DISTANCE = 2,
};
- static PassRefPtr<PannerNode> create(AudioContext* context, float sampleRate)
+ static PassRefPtrWillBeRawPtr<PannerNode> create(AudioContext* context, float sampleRate)
{
- return adoptRef(new PannerNode(context, sampleRate));
+ return adoptRefWillBeNoop(new PannerNode(context, sampleRate));
}
virtual ~PannerNode();
@@ -122,6 +122,8 @@ public:
virtual double tailTime() const OVERRIDE { return m_panner ? m_panner->tailTime() : 0; }
virtual double latencyTime() const OVERRIDE { return m_panner ? m_panner->latencyTime() : 0; }
+ virtual void trace(Visitor*) OVERRIDE;
+
private:
PannerNode(AudioContext*, float sampleRate);
@@ -159,8 +161,8 @@ private:
FloatPoint3D m_cachedVelocity;
// Gain
- RefPtr<AudioParam> m_distanceGain;
- RefPtr<AudioParam> m_coneGain;
+ RefPtrWillBeMember<AudioParam> m_distanceGain;
+ RefPtrWillBeMember<AudioParam> m_coneGain;
DistanceEffect m_distanceEffect;
ConeEffect m_coneEffect;
float m_lastGain;
@@ -171,7 +173,7 @@ private:
double m_cachedDopplerRate;
// Cached listener parameters after processing.
- RefPtr<AudioListener> m_cachedListener;
+ RefPtrWillBeMember<AudioListener> m_cachedListener;
RefPtr<HRTFDatabaseLoader> m_hrtfDatabaseLoader;

Powered by Google App Engine
This is Rietveld 408576698