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

Unified Diff: third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp

Issue 2515363002: Introduce AnimationWorkletProxyClient and necessary plumbing to get it in worklet messaging proxy. (Closed)
Patch Set: Remove unnecessary PLATFORM_EXPORT 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/web/WebFrameWidgetImpl.cpp
diff --git a/third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp b/third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp
index b015b9b24c3c74bcf88b809e27ac3f92d7c83155..88d6802a0055d364bb11259777bbe0aa163480f6 100644
--- a/third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp
+++ b/third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp
@@ -58,9 +58,10 @@
#include "public/web/WebPlugin.h"
#include "public/web/WebRange.h"
#include "public/web/WebWidgetClient.h"
+#include "web/AnimationWorkletProxyClientImpl.h"
#include "web/CompositionUnderlineVectorBuilder.h"
#include "web/CompositorMutatorImpl.h"
-#include "web/CompositorProxyClientImpl.h"
+#include "web/CompositorWorkerProxyClientImpl.h"
#include "web/ContextMenuAllowedScope.h"
#include "web/InspectorOverlay.h"
#include "web/PageOverlay.h"
@@ -417,14 +418,25 @@ void WebFrameWidgetImpl::scheduleAnimation() {
m_client->scheduleAnimation();
}
-CompositorProxyClient* WebFrameWidgetImpl::createCompositorProxyClient() {
+CompositorMutatorImpl& WebFrameWidgetImpl::mutator() {
if (!m_mutator) {
std::unique_ptr<CompositorMutatorClient> mutatorClient =
CompositorMutatorImpl::createClient();
m_mutator = static_cast<CompositorMutatorImpl*>(mutatorClient->mutator());
m_layerTreeView->setMutatorClient(std::move(mutatorClient));
}
- return new CompositorProxyClientImpl(m_mutator);
+
+ return *m_mutator;
+}
+
+CompositorWorkerProxyClient*
+WebFrameWidgetImpl::createCompositorWorkerProxyClient() {
+ return new CompositorWorkerProxyClientImpl(&mutator());
+}
+
+AnimationWorkletProxyClient*
+WebFrameWidgetImpl::createAnimationWorkletProxyClient() {
+ return new AnimationWorkletProxyClientImpl(&mutator());
}
void WebFrameWidgetImpl::applyViewportDeltas(
« no previous file with comments | « third_party/WebKit/Source/web/WebFrameWidgetImpl.h ('k') | third_party/WebKit/Source/web/WebViewFrameWidget.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698