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

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

Issue 2910953002: Worklet: Enqueue tasks into outsideSetting's event loop (Closed)
Patch Set: fix 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/WorkletModuleTreeClient.h
diff --git a/third_party/WebKit/Source/core/workers/WorkletModuleTreeClient.h b/third_party/WebKit/Source/core/workers/WorkletModuleTreeClient.h
index 0329ee87488174059a4d1ae05bdfce2da8806c74..2a3d34be386d58f795b7a248ad4ced480b83308c 100644
--- a/third_party/WebKit/Source/core/workers/WorkletModuleTreeClient.h
+++ b/third_party/WebKit/Source/core/workers/WorkletModuleTreeClient.h
@@ -3,6 +3,7 @@
// found in the LICENSE file.
#include "core/dom/Modulator.h"
+#include "core/workers/ParentFrameTaskRunners.h"
#include "core/workers/WorkletPendingTasks.h"
#include "platform/heap/GarbageCollected.h"
@@ -10,13 +11,16 @@ namespace blink {
class ModuleScript;
+// A client of the module tree fetching living on the worklet context's thread.
falken 2017/05/30 01:33:23 +1 to add a comment. It's a bit obscure though if
nhiroki 2017/05/30 02:14:23 Done.
class WorkletModuleTreeClient final
: public GarbageCollectedFinalized<WorkletModuleTreeClient>,
public ModuleTreeClient {
USING_GARBAGE_COLLECTED_MIXIN(WorkletModuleTreeClient);
public:
- WorkletModuleTreeClient(Modulator*, WorkletPendingTasks*);
+ WorkletModuleTreeClient(Modulator*,
+ ParentFrameTaskRunners*,
+ WorkletPendingTasks*);
// Implements ModuleTreeClient.
void NotifyModuleTreeLoadFinished(ModuleScript*) final;
@@ -25,7 +29,8 @@ class WorkletModuleTreeClient final
private:
Member<Modulator> modulator_;
- Member<WorkletPendingTasks> pending_tasks_;
+ CrossThreadPersistent<ParentFrameTaskRunners> task_runners_;
+ CrossThreadPersistent<WorkletPendingTasks> pending_tasks_;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698