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

Unified Diff: third_party/WebKit/Source/modules/compositorworker/CompositorWorkerThreadTest.cpp

Issue 2518073002: Worker: Use per-frame task runners from a worker thread (Closed)
Patch Set: rebase Created 4 years, 1 month 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/compositorworker/CompositorWorkerThreadTest.cpp
diff --git a/third_party/WebKit/Source/modules/compositorworker/CompositorWorkerThreadTest.cpp b/third_party/WebKit/Source/modules/compositorworker/CompositorWorkerThreadTest.cpp
index a059c5ad2042f7574a82f27da50cb09b8047746f..0e30a532253f6a493791afe96b966cd475138d40 100644
--- a/third_party/WebKit/Source/modules/compositorworker/CompositorWorkerThreadTest.cpp
+++ b/third_party/WebKit/Source/modules/compositorworker/CompositorWorkerThreadTest.cpp
@@ -12,6 +12,7 @@
#include "core/inspector/ConsoleMessage.h"
#include "core/testing/DummyPageHolder.h"
#include "core/workers/InProcessWorkerObjectProxy.h"
+#include "core/workers/ParentFrameTaskRunners.h"
#include "core/workers/WorkerBackingThread.h"
#include "core/workers/WorkerLoaderProxy.h"
#include "core/workers/WorkerOrWorkletGlobalScope.h"
@@ -49,6 +50,9 @@ class TestCompositorWorkerObjectProxy : public InProcessWorkerObjectProxy {
const String& message,
SourceLocation*) override {}
void postMessageToPageInspector(const String&) override {}
+ ParentFrameTaskRunners* getParentFrameTaskRunners() override {
+ return m_parentFrameTaskRunners.get();
+ }
void didCreateWorkerGlobalScope(WorkerOrWorkletGlobalScope*) override {}
void didEvaluateWorkerScript(bool success) override {}
@@ -62,9 +66,12 @@ class TestCompositorWorkerObjectProxy : public InProcessWorkerObjectProxy {
private:
TestCompositorWorkerObjectProxy(ExecutionContext* context)
- : InProcessWorkerObjectProxy(nullptr), m_executionContext(context) {}
+ : InProcessWorkerObjectProxy(nullptr),
+ m_executionContext(context),
+ m_parentFrameTaskRunners(ParentFrameTaskRunners::create(nullptr)) {}
Persistent<ExecutionContext> m_executionContext;
+ Persistent<ParentFrameTaskRunners> m_parentFrameTaskRunners;
};
class TestCompositorProxyClient
« no previous file with comments | « third_party/WebKit/Source/core/workers/WorkerThreadTest.cpp ('k') | third_party/WebKit/Source/web/WebSharedWorkerImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698