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

Unified Diff: cc/trees/layer_tree_host_impl.cc

Issue 1602343002: compositor-worker: cc->blink mutation plumbing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@compositor-worker-ian-patch
Patch Set: Created 4 years, 9 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: cc/trees/layer_tree_host_impl.cc
diff --git a/cc/trees/layer_tree_host_impl.cc b/cc/trees/layer_tree_host_impl.cc
index 8b1227270b5f39e3cfefa936052e0f585d6c55e0..8453ab56ecaae5d6324be2186b9ec4762a78d201 100644
--- a/cc/trees/layer_tree_host_impl.cc
+++ b/cc/trees/layer_tree_host_impl.cc
@@ -15,6 +15,7 @@
#include <utility>
#include "base/auto_reset.h"
+#include "base/bind.h"
#include "base/containers/small_map.h"
#include "base/json/json_writer.h"
#include "base/metrics/histogram.h"
@@ -3253,6 +3254,14 @@ void LayerTreeHostImpl::PinchGestureEnd() {
SetNeedsRedraw();
}
+scoped_ptr<BeginFrameCallbackList>
+LayerTreeHostImpl::ProcessLayerTreeMutations() {
+ // TODO(majidvp): This is where we turn |LayerTreeMutationsCallback| into
+ // a list of closures.
+ auto callbacks = make_scoped_ptr(new BeginFrameCallbackList());
esprehn 2016/03/22 21:16:49 just return it? Why do we need the local?
majidvp 2016/03/23 22:24:53 Fixed.
+ return callbacks;
+}
+
static void CollectScrollDeltas(ScrollAndScaleSet* scroll_info,
LayerImpl* layer_impl) {
if (!layer_impl)

Powered by Google App Engine
This is Rietveld 408576698