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

Unified Diff: cc/input/scroller_size.h

Issue 2773893003: Record size of scroller that user scrolls (Closed)
Patch Set: Logic update Created 3 years, 8 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/trees/layer_tree_host_impl.cc » ('j') | cc/trees/layer_tree_host_impl.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/input/scroller_size.h
diff --git a/cc/input/scroller_size.h b/cc/input/scroller_size.h
new file mode 100644
index 0000000000000000000000000000000000000000..da8dc0d563d43bc6be490ef876c4bd5abea88d6c
--- /dev/null
+++ b/cc/input/scroller_size.h
@@ -0,0 +1,16 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CC_INPUT_SCROLLER_SIZE_H_
+#define CC_INPUT_SCROLLER_SIZE_H_
+
+namespace cc {
+
+// Use the two constants to add scroller size related UMA metrics.
+static const int kMaxScrollerSize = 200000; // Approximately 400px * 500px
+static const int kBucketNum = 50;
bokan 2017/04/18 19:24:38 This name needs to be more specific. I would also
yigu 2017/04/19 20:53:05 Done.
+
+} // namespace cc
+
+#endif // CC_INPUT_SCROLLER_SIZE_H_
« no previous file with comments | « no previous file | cc/trees/layer_tree_host_impl.cc » ('j') | cc/trees/layer_tree_host_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698