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

Unified Diff: ui/events/blink/input_handler_proxy.cc

Issue 2289593006: Fix recording of kAnimatingScrollOnMain (Closed)
Patch Set: update unit test. Created 4 years, 4 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: ui/events/blink/input_handler_proxy.cc
diff --git a/ui/events/blink/input_handler_proxy.cc b/ui/events/blink/input_handler_proxy.cc
index 377f6bddcbf73ce8b50cd054d5c9dc40524408dc..de95c206c3bc74cbff9a256364f8989462c913fe 100644
--- a/ui/events/blink/input_handler_proxy.cc
+++ b/ui/events/blink/input_handler_proxy.cc
@@ -427,6 +427,12 @@ void InputHandlerProxy::RecordMainThreadScrollingReasons(
++i) {
unsigned val = 1 << i;
if (reasons & val) {
+ if (val == cc::MainThreadScrollingReason::kAnimatingScrollOnMainThread) {
+ // We only want to record "animating scroll on main thread" reason if
+ // it's the only reason. Bail if that's not the case.
+ if (reasons & ~val)
+ continue;
+ }
if (device == blink::WebGestureDeviceTouchscreen) {
UMA_HISTOGRAM_ENUMERATION(
kGestureHistogramName, i + 1,
« no previous file with comments | « no previous file | ui/events/blink/input_handler_proxy_unittest.cc » ('j') | ui/events/blink/input_handler_proxy_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698