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

Unified Diff: third_party/WebKit/Source/platform/graphics/CompositorMutatorClient.cpp

Issue 2041193005: [compositorworker] compositor proxy mutation updates underlying layers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@compositor-worker-upstream-registration
Patch Set: raise if not initialized Created 4 years, 6 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/platform/graphics/CompositorMutatorClient.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/CompositorMutatorClient.cpp b/third_party/WebKit/Source/platform/graphics/CompositorMutatorClient.cpp
index 84ad1b0c3adafd0a269af67b8322fde43aa7bbde..b3d04d81d9e7cb1bb941976c90c27ccaa002fb22 100644
--- a/third_party/WebKit/Source/platform/graphics/CompositorMutatorClient.cpp
+++ b/third_party/WebKit/Source/platform/graphics/CompositorMutatorClient.cpp
@@ -6,7 +6,9 @@
#include "base/bind.h"
#include "base/callback.h"
-#include "platform/TraceEvent.h"
+#include "base/trace_event/trace_event.h"
+#include "cc/trees/layer_tree_impl.h"
+#include "platform/graphics/CompositorMutableStateProvider.h"
#include "platform/graphics/CompositorMutation.h"
#include "platform/graphics/CompositorMutationsTarget.h"
#include "platform/graphics/CompositorMutator.h"
@@ -28,13 +30,15 @@ CompositorMutatorClient::~CompositorMutatorClient()
}
bool CompositorMutatorClient::Mutate(
- base::TimeTicks monotonicTime)
+ base::TimeTicks monotonicTime,
+ cc::LayerTreeImpl* treeImpl)
{
TRACE_EVENT0("compositor-worker", "CompositorMutatorClient::Mutate");
double monotonicTimeNow = (monotonicTime - base::TimeTicks()).InSecondsF();
if (!m_mutations)
m_mutations = adoptPtr(new CompositorMutations);
- bool shouldReinvoke = m_mutator->mutate(monotonicTimeNow);
+ CompositorMutableStateProvider compositorState(treeImpl, m_mutations.get());
+ bool shouldReinvoke = m_mutator->mutate(monotonicTimeNow, &compositorState);
return shouldReinvoke;
}

Powered by Google App Engine
This is Rietveld 408576698