OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "content/browser/renderer_host/input/render_widget_host_latency_tracker
.h" | 5 #include "content/browser/renderer_host/input/render_widget_host_latency_tracker
.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/metrics/histogram.h" | 10 #include "base/metrics/histogram.h" |
11 #include "build/build_config.h" | 11 #include "build/build_config.h" |
12 #include "content/browser/renderer_host/render_widget_host_impl.h" | 12 #include "content/browser/renderer_host/render_widget_host_impl.h" |
| 13 #include "content/common/input/web_input_event_traits.h" |
13 | 14 |
14 using blink::WebGestureEvent; | 15 using blink::WebGestureEvent; |
15 using blink::WebInputEvent; | 16 using blink::WebInputEvent; |
16 using blink::WebMouseEvent; | 17 using blink::WebMouseEvent; |
17 using blink::WebMouseWheelEvent; | 18 using blink::WebMouseWheelEvent; |
18 using blink::WebTouchEvent; | 19 using blink::WebTouchEvent; |
19 using ui::LatencyInfo; | 20 using ui::LatencyInfo; |
20 | 21 |
21 namespace content { | 22 namespace content { |
22 namespace { | 23 namespace { |
(...skipping 545 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
568 latency_component_id_, nullptr)) { | 569 latency_component_id_, nullptr)) { |
569 return; | 570 return; |
570 } | 571 } |
571 | 572 |
572 ComputeScrollLatencyHistograms(gpu_swap_begin_component, | 573 ComputeScrollLatencyHistograms(gpu_swap_begin_component, |
573 gpu_swap_end_component, latency_component_id_, | 574 gpu_swap_end_component, latency_component_id_, |
574 latency); | 575 latency); |
575 } | 576 } |
576 | 577 |
577 } // namespace content | 578 } // namespace content |
OLD | NEW |