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

Unified Diff: third_party/WebKit/Source/modules/webaudio/OfflineAudioDestinationNode.h

Issue 2702243003: Disallow cross-thread Persistent<> read access. (Closed)
Patch Set: rebased upto r451733 Created 3 years, 10 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/modules/webaudio/OfflineAudioDestinationNode.h
diff --git a/third_party/WebKit/Source/modules/webaudio/OfflineAudioDestinationNode.h b/third_party/WebKit/Source/modules/webaudio/OfflineAudioDestinationNode.h
index d8073ce6820eb03df3cf11ed57c38d7ba89f70cf..c18c39fe24f93622abf5ce6102ceb8d97d95872f 100644
--- a/third_party/WebKit/Source/modules/webaudio/OfflineAudioDestinationNode.h
+++ b/third_party/WebKit/Source/modules/webaudio/OfflineAudioDestinationNode.h
@@ -106,8 +106,8 @@ class OfflineAudioDestinationHandler final : public AudioDestinationHandler {
// This AudioHandler renders into this AudioBuffer.
// This Persistent doesn't make a reference cycle including the owner
- // OfflineAudioDestinationNode.
- Persistent<AudioBuffer> m_renderTarget;
+ // OfflineAudioDestinationNode. It is accessed by both audio and main thread.
+ CrossThreadPersistent<AudioBuffer> m_renderTarget;
// Temporary AudioBus for each render quantum.
RefPtr<AudioBus> m_renderBus;

Powered by Google App Engine
This is Rietveld 408576698