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

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

Issue 1956893003: compositor-worker: Add CompositorProxyClient worker client of CompositorWorker. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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/modules/compositorworker/CompositorWorker.cpp
diff --git a/third_party/WebKit/Source/modules/compositorworker/CompositorWorker.cpp b/third_party/WebKit/Source/modules/compositorworker/CompositorWorker.cpp
index 3eefc6ac2809d657c9ed86b7a22aaaa1ff712249..8e95a02af05b943a12060a027c29258f74460e59 100644
--- a/third_party/WebKit/Source/modules/compositorworker/CompositorWorker.cpp
+++ b/third_party/WebKit/Source/modules/compositorworker/CompositorWorker.cpp
@@ -5,8 +5,10 @@
#include "modules/compositorworker/CompositorWorker.h"
#include "bindings/core/v8/ExceptionState.h"
+#include "core/dom/CompositorProxyClient.h"
#include "core/dom/Document.h"
#include "core/dom/ExceptionCode.h"
+#include "core/page/ChromeClient.h"
#include "core/workers/WorkerClients.h"
#include "modules/EventTargetModules.h"
#include "modules/compositorworker/CompositorWorkerMessagingProxy.h"
@@ -42,10 +44,12 @@ const AtomicString& CompositorWorker::interfaceName() const
return EventTargetNames::CompositorWorker;
}
-InProcessWorkerGlobalScopeProxy* CompositorWorker::createInProcessWorkerGlobalScopeProxy(ExecutionContext* worker)
+InProcessWorkerGlobalScopeProxy* CompositorWorker::createInProcessWorkerGlobalScopeProxy(ExecutionContext* context)
{
- ASSERT(getExecutionContext()->isDocument());
- return new CompositorWorkerMessagingProxy(this);
+ Document* document = toDocument(context);
+ WorkerClients* workerClients = WorkerClients::create();
+ provideCompositorProxyClientTo(workerClients, document->frame()->chromeClient().createCompositorProxyClient());
haraken 2016/05/09 02:05:55 As commented in the original CL (https://coderevie
+ return new CompositorWorkerMessagingProxy(this, workerClients);
}
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698