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

Unified Diff: cc/blink/web_layer_impl.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
« no previous file with comments | « no previous file | cc/layers/layer.h » ('j') | cc/trees/layer_tree_host_unittest_scroll.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/blink/web_layer_impl.cc
diff --git a/cc/blink/web_layer_impl.cc b/cc/blink/web_layer_impl.cc
index 73e62b3e66fc0f018aa19bf2484402d08a1b69af..345ea3ea64adec1aec1c40c02c376dca598f7d4a 100644
--- a/cc/blink/web_layer_impl.cc
+++ b/cc/blink/web_layer_impl.cc
@@ -416,7 +416,8 @@ void WebLayerImpl::setScrollClient(blink::WebLayerScrollClient* scroll_client) {
base::Bind(&blink::WebLayerScrollClient::didScroll,
base::Unretained(scroll_client)));
} else {
- layer_->set_did_scroll_callback(base::Closure());
+ layer_->set_did_scroll_callback(
+ base::Callback<void(const gfx::ScrollOffset&)>());
}
}
« no previous file with comments | « no previous file | cc/layers/layer.h » ('j') | cc/trees/layer_tree_host_unittest_scroll.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698