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

Unified Diff: third_party/WebKit/Source/platform/mediastream/MediaStreamSource.h

Issue 2757883002: Revert "Pull AudioDestinationConsumer off the Blink GC heap." (Closed)
Patch Set: Created 3 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/platform/mediastream/MediaStreamSource.h
diff --git a/third_party/WebKit/Source/platform/mediastream/MediaStreamSource.h b/third_party/WebKit/Source/platform/mediastream/MediaStreamSource.h
index e41f74b78283eb31b503dd865900976d0a596c76..d05fc45e6eb5a6ac2815853cebe3b7f24660e816 100644
--- a/third_party/WebKit/Source/platform/mediastream/MediaStreamSource.h
+++ b/third_party/WebKit/Source/platform/mediastream/MediaStreamSource.h
@@ -102,7 +102,7 @@ class PLATFORM_EXPORT MediaStreamSource final
bool requiresAudioConsumer() const { return m_requiresConsumer; }
void addAudioConsumer(AudioDestinationConsumer*);
bool removeAudioConsumer(AudioDestinationConsumer*);
- const HashSet<AudioDestinationConsumer*>& audioConsumers() {
+ const HeapHashSet<Member<AudioDestinationConsumer>>& audioConsumers() {
return m_audioConsumers;
}
@@ -126,7 +126,7 @@ class PLATFORM_EXPORT MediaStreamSource final
bool m_requiresConsumer;
HeapHashSet<WeakMember<Observer>> m_observers;
Mutex m_audioConsumersLock;
- HashSet<AudioDestinationConsumer*> m_audioConsumers;
+ HeapHashSet<Member<AudioDestinationConsumer>> m_audioConsumers;
std::unique_ptr<ExtraData> m_extraData;
WebMediaConstraints m_constraints;
};

Powered by Google App Engine
This is Rietveld 408576698