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

Unified Diff: cc/layers/layer.h

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.h
diff --git a/cc/layers/layer.h b/cc/layers/layer.h
index 99bb550023ab7056e476cf106ea4713b948962b0..6c93379fccaf2009ba170a1eb3619c11a11bc0c6 100644
--- a/cc/layers/layer.h
+++ b/cc/layers/layer.h
@@ -251,7 +251,8 @@ class CC_EXPORT Layer : public base::RefCounted<Layer> {
return inputs_.touch_event_handler_region;
}
- void set_did_scroll_callback(const base::Closure& callback) {
+ void set_did_scroll_callback(
+ const base::Callback<void(const gfx::ScrollOffset&)>& callback) {
inputs_.did_scroll_callback = callback;
}
@@ -615,7 +616,7 @@ class CC_EXPORT Layer : public base::RefCounted<Layer> {
// The following elements can not and are not serialized.
LayerClient* client;
- base::Closure did_scroll_callback;
+ base::Callback<void(const gfx::ScrollOffset&)> did_scroll_callback;
std::vector<std::unique_ptr<CopyOutputRequest>> copy_requests;
gfx::Size preferred_raster_bounds;

Powered by Google App Engine
This is Rietveld 408576698