Index: third_party/WebKit/Source/modules/webaudio/MediaElementAudioSourceNode.h |
diff --git a/third_party/WebKit/Source/modules/webaudio/MediaElementAudioSourceNode.h b/third_party/WebKit/Source/modules/webaudio/MediaElementAudioSourceNode.h |
index 1a855674e3858ac78d6fbcf21f5514fbcfbc8e8a..40330eac4058a90f0b486c835c20c92722a9593e 100644 |
--- a/third_party/WebKit/Source/modules/webaudio/MediaElementAudioSourceNode.h |
+++ b/third_party/WebKit/Source/modules/webaudio/MediaElementAudioSourceNode.h |
@@ -45,7 +45,7 @@ class MediaElementAudioSourceHandler final : public AudioHandler { |
HTMLMediaElement&); |
~MediaElementAudioSourceHandler() override; |
- HTMLMediaElement* mediaElement() { return m_mediaElement.get(); } |
+ HTMLMediaElement* mediaElement() const; |
// AudioHandler |
void dispose() override; |
@@ -76,7 +76,9 @@ class MediaElementAudioSourceHandler final : public AudioHandler { |
// This Persistent doesn't make a reference cycle. The reference from |
// HTMLMediaElement to AudioSourceProvideClient, which |
// MediaElementAudioSourceNode implements, is weak. |
- Persistent<HTMLMediaElement> m_mediaElement; |
+ // |
+ // It is accessed by both audio and main thread. |
+ CrossThreadPersistent<HTMLMediaElement> m_mediaElement; |
haraken
2017/02/20 23:57:18
Ditto.
|
Mutex m_processLock; |
unsigned m_sourceNumberOfChannels; |