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

Side by Side 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2014 Google Inc. All rights reserved. 2 * Copyright (C) 2014 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 #include "core/page/Page.h" 51 #include "core/page/Page.h"
52 #include "core/page/PointerLockController.h" 52 #include "core/page/PointerLockController.h"
53 #include "platform/KeyboardCodes.h" 53 #include "platform/KeyboardCodes.h"
54 #include "platform/WebFrameScheduler.h" 54 #include "platform/WebFrameScheduler.h"
55 #include "platform/animation/CompositorAnimationHost.h" 55 #include "platform/animation/CompositorAnimationHost.h"
56 #include "platform/graphics/CompositorMutatorClient.h" 56 #include "platform/graphics/CompositorMutatorClient.h"
57 #include "public/web/WebAutofillClient.h" 57 #include "public/web/WebAutofillClient.h"
58 #include "public/web/WebPlugin.h" 58 #include "public/web/WebPlugin.h"
59 #include "public/web/WebRange.h" 59 #include "public/web/WebRange.h"
60 #include "public/web/WebWidgetClient.h" 60 #include "public/web/WebWidgetClient.h"
61 #include "web/AnimationWorkletProxyClientImpl.h"
61 #include "web/CompositionUnderlineVectorBuilder.h" 62 #include "web/CompositionUnderlineVectorBuilder.h"
62 #include "web/CompositorMutatorImpl.h" 63 #include "web/CompositorMutatorImpl.h"
63 #include "web/CompositorProxyClientImpl.h" 64 #include "web/CompositorWorkerProxyClientImpl.h"
64 #include "web/ContextMenuAllowedScope.h" 65 #include "web/ContextMenuAllowedScope.h"
65 #include "web/InspectorOverlay.h" 66 #include "web/InspectorOverlay.h"
66 #include "web/PageOverlay.h" 67 #include "web/PageOverlay.h"
67 #include "web/WebDevToolsAgentImpl.h" 68 #include "web/WebDevToolsAgentImpl.h"
68 #include "web/WebInputEventConversion.h" 69 #include "web/WebInputEventConversion.h"
69 #include "web/WebInputMethodControllerImpl.h" 70 #include "web/WebInputMethodControllerImpl.h"
70 #include "web/WebLocalFrameImpl.h" 71 #include "web/WebLocalFrameImpl.h"
71 #include "web/WebPluginContainerImpl.h" 72 #include "web/WebPluginContainerImpl.h"
72 #include "web/WebRemoteFrameImpl.h" 73 #include "web/WebRemoteFrameImpl.h"
73 #include "web/WebViewFrameWidget.h" 74 #include "web/WebViewFrameWidget.h"
(...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after
410 411
411 void WebFrameWidgetImpl::scheduleAnimation() { 412 void WebFrameWidgetImpl::scheduleAnimation() {
412 if (m_layerTreeView) { 413 if (m_layerTreeView) {
413 m_layerTreeView->setNeedsBeginFrame(); 414 m_layerTreeView->setNeedsBeginFrame();
414 return; 415 return;
415 } 416 }
416 if (m_client) 417 if (m_client)
417 m_client->scheduleAnimation(); 418 m_client->scheduleAnimation();
418 } 419 }
419 420
420 CompositorProxyClient* WebFrameWidgetImpl::createCompositorProxyClient() { 421 CompositorMutatorImpl& WebFrameWidgetImpl::mutator() {
421 if (!m_mutator) { 422 if (!m_mutator) {
422 std::unique_ptr<CompositorMutatorClient> mutatorClient = 423 std::unique_ptr<CompositorMutatorClient> mutatorClient =
423 CompositorMutatorImpl::createClient(); 424 CompositorMutatorImpl::createClient();
424 m_mutator = static_cast<CompositorMutatorImpl*>(mutatorClient->mutator()); 425 m_mutator = static_cast<CompositorMutatorImpl*>(mutatorClient->mutator());
425 m_layerTreeView->setMutatorClient(std::move(mutatorClient)); 426 m_layerTreeView->setMutatorClient(std::move(mutatorClient));
426 } 427 }
427 return new CompositorProxyClientImpl(m_mutator); 428
429 return *m_mutator;
430 }
431
432 CompositorWorkerProxyClient*
433 WebFrameWidgetImpl::createCompositorWorkerProxyClient() {
434 return new CompositorWorkerProxyClientImpl(&mutator());
435 }
436
437 AnimationWorkletProxyClient*
438 WebFrameWidgetImpl::createAnimationWorkletProxyClient() {
439 return new AnimationWorkletProxyClientImpl(&mutator());
428 } 440 }
429 441
430 void WebFrameWidgetImpl::applyViewportDeltas( 442 void WebFrameWidgetImpl::applyViewportDeltas(
431 const WebFloatSize& visualViewportDelta, 443 const WebFloatSize& visualViewportDelta,
432 const WebFloatSize& mainFrameDelta, 444 const WebFloatSize& mainFrameDelta,
433 const WebFloatSize& elasticOverscrollDelta, 445 const WebFloatSize& elasticOverscrollDelta,
434 float pageScaleDelta, 446 float pageScaleDelta,
435 float browserControlsDelta) { 447 float browserControlsDelta) {
436 // FIXME: To be implemented. 448 // FIXME: To be implemented.
437 } 449 }
(...skipping 703 matching lines...) Expand 10 before | Expand all | Expand 10 after
1141 return nullptr; 1153 return nullptr;
1142 } 1154 }
1143 1155
1144 LocalFrame* WebFrameWidgetImpl::focusedLocalFrameAvailableForIme() const { 1156 LocalFrame* WebFrameWidgetImpl::focusedLocalFrameAvailableForIme() const {
1145 if (!m_imeAcceptEvents) 1157 if (!m_imeAcceptEvents)
1146 return nullptr; 1158 return nullptr;
1147 return focusedLocalFrameInWidget(); 1159 return focusedLocalFrameInWidget();
1148 } 1160 }
1149 1161
1150 } // namespace blink 1162 } // namespace blink
OLDNEW
« 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