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

Side by Side Diff: third_party/WebKit/Source/modules/webaudio/AudioWorkletThread.h

Issue 2793593002: AudioWorklet prototype
Patch Set: Merge changes, AudioParam bug fix Created 3 years, 5 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 // 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 #ifndef AudioWorkletThread_h 5 #ifndef AudioWorkletThread_h
6 #define AudioWorkletThread_h 6 #define AudioWorkletThread_h
7 7
8 #include "core/workers/WorkerThread.h" 8 #include "core/workers/WorkerThread.h"
9 #include "core/workers/WorkletThreadHolder.h" 9 #include "core/workers/WorkletThreadHolder.h"
10 #include "modules/ModulesExport.h" 10 #include "modules/ModulesExport.h"
(...skipping 15 matching lines...) Expand all
26 26
27 WorkerBackingThread& GetWorkerBackingThread() override; 27 WorkerBackingThread& GetWorkerBackingThread() override;
28 28
29 // The backing thread is cleared by clearSharedBackingThread(). 29 // The backing thread is cleared by clearSharedBackingThread().
30 void ClearWorkerBackingThread() override {} 30 void ClearWorkerBackingThread() override {}
31 31
32 // This may block the main thread. 32 // This may block the main thread.
33 static void CollectAllGarbage(); 33 static void CollectAllGarbage();
34 34
35 static void EnsureSharedBackingThread(); 35 static void EnsureSharedBackingThread();
36 static void SetSharedBackingThread(WebThread*);
36 static void ClearSharedBackingThread(); 37 static void ClearSharedBackingThread();
37 38
38 static void CreateSharedBackingThreadForTest(); 39 static void CreateSharedBackingThreadForTest();
39 40
40 protected: 41 protected:
41 WorkerOrWorkletGlobalScope* CreateWorkerGlobalScope( 42 WorkerOrWorkletGlobalScope* CreateWorkerGlobalScope(
42 std::unique_ptr<GlobalScopeCreationParams>) final; 43 std::unique_ptr<GlobalScopeCreationParams>) final;
43 44
44 bool IsOwningBackingThread() const override { return false; } 45 bool IsOwningBackingThread() const override { return false; }
45 46
46 private: 47 private:
47 AudioWorkletThread(ThreadableLoadingContext*, WorkerReportingProxy&); 48 AudioWorkletThread(ThreadableLoadingContext*, WorkerReportingProxy&);
48 }; 49 };
49 50
50 } // namespace blink 51 } // namespace blink
51 52
52 #endif // AudioWorkletThread_h 53 #endif // AudioWorkletThread_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698