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

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

Issue 438293003: Enable Oilpan by default for webaudio/ (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
« no previous file with comments | « Source/modules/webaudio/OscillatorNode.cpp ('k') | Source/modules/webaudio/PeriodicWave.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 46
47 class PannerNode FINAL : public AudioNode { 47 class PannerNode FINAL : public AudioNode {
48 public: 48 public:
49 // These enums are used to distinguish what cached values of panner are dirt y. 49 // These enums are used to distinguish what cached values of panner are dirt y.
50 enum { 50 enum {
51 AzimuthElevationDirty = 0x1, 51 AzimuthElevationDirty = 0x1,
52 DistanceConeGainDirty = 0x2, 52 DistanceConeGainDirty = 0x2,
53 DopplerRateDirty = 0x4, 53 DopplerRateDirty = 0x4,
54 }; 54 };
55 55
56 static PassRefPtrWillBeRawPtr<PannerNode> create(AudioContext* context, floa t sampleRate) 56 static PannerNode* create(AudioContext* context, float sampleRate)
57 { 57 {
58 return adoptRefWillBeNoop(new PannerNode(context, sampleRate)); 58 return adoptRefCountedGarbageCollectedWillBeNoop(new PannerNode(context, sampleRate));
59 } 59 }
60 60
61 virtual ~PannerNode(); 61 virtual ~PannerNode();
62 62
63 // AudioNode 63 // AudioNode
64 virtual void dispose() OVERRIDE; 64 virtual void dispose() OVERRIDE;
65 virtual void process(size_t framesToProcess) OVERRIDE; 65 virtual void process(size_t framesToProcess) OVERRIDE;
66 virtual void pullInputs(size_t framesToProcess) OVERRIDE; 66 virtual void pullInputs(size_t framesToProcess) OVERRIDE;
67 virtual void initialize() OVERRIDE; 67 virtual void initialize() OVERRIDE;
68 virtual void uninitialize() OVERRIDE; 68 virtual void uninitialize() OVERRIDE;
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 // AudioContext's connection count 158 // AudioContext's connection count
159 unsigned m_connectionCount; 159 unsigned m_connectionCount;
160 160
161 // Synchronize process() with setting of the panning model, source's locatio n information, listener, distance parameters and sound cones. 161 // Synchronize process() with setting of the panning model, source's locatio n information, listener, distance parameters and sound cones.
162 mutable Mutex m_processLock; 162 mutable Mutex m_processLock;
163 }; 163 };
164 164
165 } // namespace blink 165 } // namespace blink
166 166
167 #endif // PannerNode_h 167 #endif // PannerNode_h
OLDNEW
« no previous file with comments | « Source/modules/webaudio/OscillatorNode.cpp ('k') | Source/modules/webaudio/PeriodicWave.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698