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

Unified Diff: third_party/WebKit/Source/core/workers/ThreadedWorklet.h

Issue 2871513002: Worklet: Lazily create PaintWorkletGlobalScopes (Closed)
Patch Set: clean up Created 3 years, 7 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/core/workers/ThreadedWorklet.h
diff --git a/third_party/WebKit/Source/core/workers/ThreadedWorklet.h b/third_party/WebKit/Source/core/workers/ThreadedWorklet.h
index 7a4fb4f017ca2c08f2750ad0c04c4f00bc1f3442..b41a95557a31a0302876b0bd82cf2e7618af70cc 100644
--- a/third_party/WebKit/Source/core/workers/ThreadedWorklet.h
+++ b/third_party/WebKit/Source/core/workers/ThreadedWorklet.h
@@ -15,6 +15,7 @@
namespace blink {
class LocalFrame;
+class WorkletGlobalScopeProxy;
// A ThreadedWorklet is a worklet that runs off the main thread.
// TODO(nhiroki): This is a temporary class to keep classic script loading for
@@ -36,6 +37,9 @@ class CORE_EXPORT ThreadedWorklet : public Worklet,
// ContextLifecycleObserver
void ContextDestroyed(ExecutionContext*) final;
+ // Returns a proxy to WorkletGlobalScope on the context thread.
+ virtual WorkletGlobalScopeProxy* GetWorkletGlobalScopeProxy() const = 0;
+
DECLARE_VIRTUAL_TRACE();
protected:

Powered by Google App Engine
This is Rietveld 408576698