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

Unified Diff: cc/trees/layer_tree_host_impl.h

Issue 2737653004: UMA metrics for use count of wheel and touch scrolls. (Closed)
Patch Set: boolean flags used instead of fieldbit Created 3 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.h
diff --git a/cc/trees/layer_tree_host_impl.h b/cc/trees/layer_tree_host_impl.h
index 6e52d0ffb7dd2f92dc25baecd0cf3120e33fc541..23643a7732d7a12856afd906fc75451fe50e1861 100644
--- a/cc/trees/layer_tree_host_impl.h
+++ b/cc/trees/layer_tree_host_impl.h
@@ -710,6 +710,8 @@ class CC_EXPORT LayerTreeHostImpl
void ImageDecodeFinished(const base::Callback<void(bool)>& embedder_callback,
bool decode_succeeded);
+ void UpdateScrollSourceInfo(bool is_wheel_scroll);
+
using UIResourceMap = std::unordered_map<UIResourceId, UIResourceData>;
UIResourceMap ui_resource_map_;
@@ -854,6 +856,11 @@ class CC_EXPORT LayerTreeHostImpl
// begin main frame. These callbacks must only be called on the main thread.
std::vector<base::Closure> completed_image_decode_callbacks_;
+ // These are used to transfer usage of touch and wheel scrolls to the main
+ // thread.
+ bool has_scrolled_by_wheel_;
danakj 2017/03/16 15:19:21 where do these get init to false?
sahel 2017/03/17 21:02:34 Done.
+ bool has_scrolled_by_touch_;
+
DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl);
};

Powered by Google App Engine
This is Rietveld 408576698