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

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

Issue 2718643002: Worker: Pass ParentFrameTaskRunners via WorkerThread::start() instead of the ctor (Closed)
Patch Set: Created 3 years, 10 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/modules/compositorworker/AnimationWorkletThreadTest.cpp
diff --git a/third_party/WebKit/Source/modules/compositorworker/AnimationWorkletThreadTest.cpp b/third_party/WebKit/Source/modules/compositorworker/AnimationWorkletThreadTest.cpp
index 6e8eb0a9b2cb2adfcffdb345a7dc4e249e159819..fbb429e275ae17837500acffe257847e3bca1cf5 100644
--- a/third_party/WebKit/Source/modules/compositorworker/AnimationWorkletThreadTest.cpp
+++ b/third_party/WebKit/Source/modules/compositorworker/AnimationWorkletThreadTest.cpp
@@ -90,13 +90,14 @@ class AnimationWorkletThreadTest : public ::testing::Test {
std::unique_ptr<AnimationWorkletThread> createAnimationWorkletThread() {
std::unique_ptr<AnimationWorkletThread> thread =
- AnimationWorkletThread::create(nullptr, *m_reportingProxy,
- ParentFrameTaskRunners::create(nullptr));
- thread->start(WorkerThreadStartupData::create(
- KURL(ParsedURLString, "http://fake.url/"), "fake user agent", "",
- nullptr, DontPauseWorkerGlobalScopeOnStart, nullptr, "",
- m_securityOrigin.get(), nullptr, WebAddressSpaceLocal, nullptr, nullptr,
- WorkerV8Settings::Default()));
+ AnimationWorkletThread::create(nullptr, *m_reportingProxy);
+ thread->start(
+ WorkerThreadStartupData::create(
+ KURL(ParsedURLString, "http://fake.url/"), "fake user agent", "",
+ nullptr, DontPauseWorkerGlobalScopeOnStart, nullptr, "",
+ m_securityOrigin.get(), nullptr, WebAddressSpaceLocal, nullptr,
+ nullptr, WorkerV8Settings::Default()),
+ ParentFrameTaskRunners::create(nullptr));
return thread;
}

Powered by Google App Engine
This is Rietveld 408576698