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

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

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/AudioListener.h ('k') | Source/modules/webaudio/AudioListener.idl » ('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 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 { 49 {
50 ScriptWrappable::init(this); 50 ScriptWrappable::init(this);
51 } 51 }
52 52
53 AudioListener::~AudioListener() 53 AudioListener::~AudioListener()
54 { 54 {
55 } 55 }
56 56
57 void AudioListener::trace(Visitor* visitor) 57 void AudioListener::trace(Visitor* visitor)
58 { 58 {
59 #if ENABLE(OILPAN)
60 visitor->trace(m_panners); 59 visitor->trace(m_panners);
61 #endif
62 } 60 }
63 61
64 void AudioListener::addPanner(PannerNode* panner) 62 void AudioListener::addPanner(PannerNode* panner)
65 { 63 {
66 ASSERT(isMainThread()); 64 ASSERT(isMainThread());
67 if (!panner) 65 if (!panner)
68 return; 66 return;
69 67
70 m_panners.append(panner); 68 m_panners.append(panner);
71 } 69 }
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 163
166 // This synchronizes with panner's process(). 164 // This synchronizes with panner's process().
167 MutexLocker listenerLocker(m_listenerLock); 165 MutexLocker listenerLocker(m_listenerLock);
168 m_speedOfSound = speedOfSound; 166 m_speedOfSound = speedOfSound;
169 markPannersAsDirty(PannerNode::DopplerRateDirty); 167 markPannersAsDirty(PannerNode::DopplerRateDirty);
170 } 168 }
171 169
172 } // namespace blink 170 } // namespace blink
173 171
174 #endif // ENABLE(WEB_AUDIO) 172 #endif // ENABLE(WEB_AUDIO)
OLDNEW
« no previous file with comments | « Source/modules/webaudio/AudioListener.h ('k') | Source/modules/webaudio/AudioListener.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698