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

Side by Side Diff: third_party/WebKit/Source/modules/webaudio/AudioWorklet.cpp

Issue 2312493002: [worklets] Introduce ThreadedWorkletMessagingProxy and AnimationWorkletMessagaingProxy. (Closed)
Patch Set: fix win compile. Created 4 years, 3 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
« no previous file with comments | « third_party/WebKit/Source/modules/webaudio/AudioWorklet.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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 "modules/webaudio/AudioWorklet.h" 5 #include "modules/webaudio/AudioWorklet.h"
6 6
7 #include "bindings/core/v8/V8Binding.h" 7 #include "bindings/core/v8/V8Binding.h"
8 #include "core/frame/LocalFrame.h" 8 #include "core/frame/LocalFrame.h"
9 #include "core/workers/ThreadedWorkletGlobalScopeProxy.h"
hongchan 2016/09/09 17:45:30 I am not sure what this change means. Can you elab
ikilpatrick 2016/09/12 17:29:07 I've reverted these changes. Basically it needs a
10 9
11 namespace blink { 10 namespace blink {
12 11
13 // static 12 // static
14 AudioWorklet* AudioWorklet::create(LocalFrame* frame) 13 AudioWorklet* AudioWorklet::create(LocalFrame* frame)
15 { 14 {
16 AudioWorklet* worklet = new AudioWorklet(frame); 15 AudioWorklet* worklet = new AudioWorklet(frame);
17 worklet->suspendIfNeeded(); 16 worklet->suspendIfNeeded();
18 return worklet; 17 return worklet;
19 } 18 }
20 19
21 AudioWorklet::AudioWorklet(LocalFrame* frame) 20 AudioWorklet::AudioWorklet(LocalFrame* frame)
22 : Worklet(frame) 21 : Worklet(frame)
23 , m_workletGlobalScopeProxy(new ThreadedWorkletGlobalScopeProxy())
24 { 22 {
25 } 23 }
26 24
27 AudioWorklet::~AudioWorklet() 25 AudioWorklet::~AudioWorklet()
28 { 26 {
29 } 27 }
30 28
31 WorkletGlobalScopeProxy* AudioWorklet::workletGlobalScopeProxy() const 29 WorkletGlobalScopeProxy* AudioWorklet::workletGlobalScopeProxy() const
32 { 30 {
33 return m_workletGlobalScopeProxy.get(); 31 return nullptr;
34 } 32 }
35 33
36 DEFINE_TRACE(AudioWorklet) 34 DEFINE_TRACE(AudioWorklet)
37 { 35 {
38 Worklet::trace(visitor); 36 Worklet::trace(visitor);
39 } 37 }
40 38
41 } // namespace blink 39 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/modules/webaudio/AudioWorklet.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698