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

Unified Diff: cc/layers/layer.cc

Issue 2676923002: End-to-end prototype of compositor scrolling with slimming paint v2 (Closed)
Patch Set: Add SPV2 test of didScroll callback 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: cc/layers/layer.cc
diff --git a/cc/layers/layer.cc b/cc/layers/layer.cc
index 5a4a4c9d8935ade65c534242fc567184ab65d2bf..61f6b7e6ea52e67decbe50c24bbf6dfac80ec0c1 100644
--- a/cc/layers/layer.cc
+++ b/cc/layers/layer.cc
@@ -823,7 +823,8 @@ void Layer::SetScrollOffsetFromImplSide(
property_trees->needs_rebuild = true;
if (!inputs_.did_scroll_callback.is_null())
- inputs_.did_scroll_callback.Run();
+ inputs_.did_scroll_callback.Run(scroll_offset);
+
// The callback could potentially change the layer structure:
// "this" may have been destroyed during the process.
}

Powered by Google App Engine
This is Rietveld 408576698