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

Side by Side Diff: third_party/WebKit/Source/platform/mediastream/MediaStreamComponent.cpp

Issue 2011783002: Rename OwnPtr::clear() to reset() in platform/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Ericsson AB. All rights reserved. 2 * Copyright (C) 2011 Ericsson AB. All rights reserved.
3 * Copyright (C) 2013 Google Inc. All rights reserved. 3 * Copyright (C) 2013 Google Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 , m_id(id) 53 , m_id(id)
54 , m_enabled(true) 54 , m_enabled(true)
55 , m_muted(false) 55 , m_muted(false)
56 { 56 {
57 ASSERT(m_id.length()); 57 ASSERT(m_id.length());
58 ThreadState::current()->registerPreFinalizer(this); 58 ThreadState::current()->registerPreFinalizer(this);
59 } 59 }
60 60
61 void MediaStreamComponent::dispose() 61 void MediaStreamComponent::dispose()
62 { 62 {
63 m_extraData.clear(); 63 m_extraData.reset();
64 } 64 }
65 65
66 void MediaStreamComponent::AudioSourceProviderImpl::wrap(WebAudioSourceProvider* provider) 66 void MediaStreamComponent::AudioSourceProviderImpl::wrap(WebAudioSourceProvider* provider)
67 { 67 {
68 MutexLocker locker(m_provideInputLock); 68 MutexLocker locker(m_provideInputLock);
69 m_webAudioSourceProvider = provider; 69 m_webAudioSourceProvider = provider;
70 } 70 }
71 71
72 void MediaStreamComponent::AudioSourceProviderImpl::provideInput(AudioBus* bus, size_t framesToProcess) 72 void MediaStreamComponent::AudioSourceProviderImpl::provideInput(AudioBus* bus, size_t framesToProcess)
73 { 73 {
(...skipping 15 matching lines...) Expand all
89 89
90 m_webAudioSourceProvider->provideInput(webAudioData, framesToProcess); 90 m_webAudioSourceProvider->provideInput(webAudioData, framesToProcess);
91 } 91 }
92 92
93 DEFINE_TRACE(MediaStreamComponent) 93 DEFINE_TRACE(MediaStreamComponent)
94 { 94 {
95 visitor->trace(m_source); 95 visitor->trace(m_source);
96 } 96 }
97 97
98 } // namespace blink 98 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698