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

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

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) 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 PannerNode* create(AudioContext* context, float sampleRate) 56 static PannerNode* create(AudioContext* context, float sampleRate)
57 { 57 {
58 return adoptRefCountedGarbageCollectedWillBeNoop(new PannerNode(context, sampleRate)); 58 return 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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 // AudioContext's connection count 163 // AudioContext's connection count
164 unsigned m_connectionCount; 164 unsigned m_connectionCount;
165 165
166 // Synchronize process() with setting of the panning model, source's locatio n information, listener, distance parameters and sound cones. 166 // Synchronize process() with setting of the panning model, source's locatio n information, listener, distance parameters and sound cones.
167 mutable Mutex m_processLock; 167 mutable Mutex m_processLock;
168 }; 168 };
169 169
170 } // namespace blink 170 } // namespace blink
171 171
172 #endif // PannerNode_h 172 #endif // PannerNode_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698