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

Unified Diff: cc/trees/layer_tree_host_common.h

Issue 2737653004: UMA metrics for use count of wheel and touch scrolls. (Closed)
Patch Set: use of fieldbit instead of normal enum 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_common.h
diff --git a/cc/trees/layer_tree_host_common.h b/cc/trees/layer_tree_host_common.h
index de96d955c5a06644c7efa1ad7e676fb0b0b56fb5..8bd1b97a0a3bf8ee05c64c9aa96a92ef2cfe46a0 100644
--- a/cc/trees/layer_tree_host_common.h
+++ b/cc/trees/layer_tree_host_common.h
@@ -177,6 +177,7 @@ struct CC_EXPORT ScrollAndScaleSet {
float top_controls_delta;
std::vector<LayerTreeHostCommon::ScrollbarsUpdateInfo> scrollbars;
std::vector<std::unique_ptr<SwapPromise>> swap_promises;
+ uint32_t scroll_source_info;
danakj 2017/03/10 20:52:48 Why did you go with a bitmask here instead of 2 bo
sahel 2017/03/13 20:13:43 If other types of scrolling (e.g. keyboard) are ha
danakj 2017/03/13 20:16:23 I don't see how a bitflag is any more extendable t
sahel 2017/03/13 21:03:52 what I meant is: if I want to add other sources of
danakj 2017/03/13 22:29:15 Optimize for the reader, not the writer. A uint32_
sahel 2017/03/16 12:58:26 Done.
private:
DISALLOW_COPY_AND_ASSIGN(ScrollAndScaleSet);

Powered by Google App Engine
This is Rietveld 408576698