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 3f7f3612d12d04faa8b8780d88f2ae9fc1ca83d8..dc8bd787ffbc18217fb69dc13376b8facef0296d 100644 |
--- a/third_party/WebKit/Source/modules/compositorworker/CompositorWorkerThreadTest.cpp |
+++ b/third_party/WebKit/Source/modules/compositorworker/CompositorWorkerThreadTest.cpp |
@@ -67,7 +67,10 @@ class TestCompositorProxyClient |
, public CompositorProxyClient { |
USING_GARBAGE_COLLECTED_MIXIN(TestCompositorProxyClient); |
public: |
- TestCompositorProxyClient() {} |
+ explicit TestCompositorProxyClient(WorkerClients& clients) |
+ : CompositorProxyClient(clients) |
+ { |
+ } |
void setGlobalScope(WorkerGlobalScope*) override {} |
void requestAnimationFrame() override {} |
@@ -116,7 +119,7 @@ public: |
{ |
std::unique_ptr<CompositorWorkerThread> workerThread = CompositorWorkerThread::create(nullptr, *m_objectProxy, 0); |
WorkerClients* clients = WorkerClients::create(); |
- provideCompositorProxyClientTo(clients, new TestCompositorProxyClient); |
+ provideCompositorProxyClientTo(clients, new TestCompositorProxyClient(*clients)); |
workerThread->start(WorkerThreadStartupData::create( |
KURL(ParsedURLString, "http://fake.url/"), |
"fake user agent", |