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

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

Issue 1602343002: compositor-worker: cc->blink mutation plumbing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@compositor-worker-ian-patch
Patch Set: rebase Created 4 years, 11 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/WebViewImpl.cpp
diff --git a/third_party/WebKit/Source/web/WebViewImpl.cpp b/third_party/WebKit/Source/web/WebViewImpl.cpp
index 3dea6bed68ce98ddfd7bdc357299660eb44e5e37..09ac5dad547764eb795299198a120ee62d2447fe 100644
--- a/third_party/WebKit/Source/web/WebViewImpl.cpp
+++ b/third_party/WebKit/Source/web/WebViewImpl.cpp
@@ -34,6 +34,7 @@
#include "core/HTMLNames.h"
#include "core/InputTypeNames.h"
#include "core/clipboard/DataObject.h"
+#include "core/dom/DOMNodeIds.h"
#include "core/dom/Document.h"
#include "core/dom/Fullscreen.h"
#include "core/dom/LayoutTreeBuilderTraversal.h"
@@ -111,6 +112,7 @@
#include "platform/exported/WebActiveGestureAnimation.h"
#include "platform/fonts/FontCache.h"
#include "platform/graphics/Color.h"
+#include "platform/graphics/CompositorMutation.h"
#include "platform/graphics/FirstPaintInvalidationTracking.h"
#include "platform/graphics/GraphicsContext.h"
#include "platform/graphics/Image.h"
@@ -4457,6 +4459,17 @@ void WebViewImpl::recordFrameTimingEvent(FrameTimingEventType eventType, int64_t
}
}
+void WebViewImpl::applyCompositorMutations(const WebCompositorMutations& mutations)
+{
+ TRACE_EVENT0(TRACE_DISABLED_BY_DEFAULT("compositor-worker"), "WebViewImpl::applyCompositorMutations");
+ for (const auto& entry : static_cast<const CompositorMutations&>(mutations).map) {
+ int elementId = entry.key;
+ const CompositorMutation& mutation = *entry.value;
+ if (Node* node = DOMNodeIds::nodeForId(elementId))
+ toElement(node)->updateFromCompositorMutation(mutation);
+ }
+}
+
void WebViewImpl::updateLayerTreeViewport()
{
if (!page() || !m_layerTreeView)

Powered by Google App Engine
This is Rietveld 408576698