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

Side by Side Diff: Source/web/WebMediaPlayerClientImpl.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/web/WebMediaPlayerClientImpl.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "config.h" 5 #include "config.h"
6 #include "web/WebMediaPlayerClientImpl.h" 6 #include "web/WebMediaPlayerClientImpl.h"
7 7
8 #include "core/frame/LocalFrame.h" 8 #include "core/frame/LocalFrame.h"
9 #include "core/html/HTMLMediaElement.h" 9 #include "core/html/HTMLMediaElement.h"
10 #include "core/html/TimeRanges.h" 10 #include "core/html/TimeRanges.h"
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after
249 m_webAudioSourceProvider = provider; 249 m_webAudioSourceProvider = provider;
250 if (m_webAudioSourceProvider) 250 if (m_webAudioSourceProvider)
251 m_webAudioSourceProvider->setClient(m_client.get()); 251 m_webAudioSourceProvider->setClient(m_client.get());
252 } 252 }
253 253
254 void WebMediaPlayerClientImpl::AudioSourceProviderImpl::setClient(AudioSourcePro viderClient* client) 254 void WebMediaPlayerClientImpl::AudioSourceProviderImpl::setClient(AudioSourcePro viderClient* client)
255 { 255 {
256 MutexLocker locker(provideInputLock); 256 MutexLocker locker(provideInputLock);
257 257
258 if (client) 258 if (client)
259 m_client = adoptPtrWillBeNoop(new WebMediaPlayerClientImpl::AudioClientI mpl(client)); 259 m_client = new WebMediaPlayerClientImpl::AudioClientImpl(client);
260 else 260 else
261 m_client.clear(); 261 m_client.clear();
262 262
263 if (m_webAudioSourceProvider) 263 if (m_webAudioSourceProvider)
264 m_webAudioSourceProvider->setClient(m_client.get()); 264 m_webAudioSourceProvider->setClient(m_client.get());
265 } 265 }
266 266
267 void WebMediaPlayerClientImpl::AudioSourceProviderImpl::provideInput(AudioBus* b us, size_t framesToProcess) 267 void WebMediaPlayerClientImpl::AudioSourceProviderImpl::provideInput(AudioBus* b us, size_t framesToProcess)
268 { 268 {
269 ASSERT(bus); 269 ASSERT(bus);
(...skipping 22 matching lines...) Expand all
292 } 292 }
293 293
294 void WebMediaPlayerClientImpl::AudioClientImpl::trace(Visitor* visitor) 294 void WebMediaPlayerClientImpl::AudioClientImpl::trace(Visitor* visitor)
295 { 295 {
296 visitor->trace(m_client); 296 visitor->trace(m_client);
297 } 297 }
298 298
299 #endif 299 #endif
300 300
301 } // namespace blink 301 } // namespace blink
OLDNEW
« no previous file with comments | « Source/web/WebMediaPlayerClientImpl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698