| 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 #ifndef CONTENT_BROWSER_RENDERER_HOST_INPUT_RENDER_WIDGET_HOST_LATENCY_TRACKER_H
_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_INPUT_RENDER_WIDGET_HOST_LATENCY_TRACKER_H
_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_RENDER_WIDGET_HOST_LATENCY_TRACKER_H
_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_RENDER_WIDGET_HOST_LATENCY_TRACKER_H
_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "base/macros.h" | 12 #include "base/macros.h" |
| 13 #include "content/browser/renderer_host/event_with_latency_info.h" | 13 #include "content/browser/renderer_host/event_with_latency_info.h" |
| 14 #include "content/common/content_export.h" | 14 #include "content/common/content_export.h" |
| 15 #include "ui/latency_info/latency_info.h" | 15 #include "ui/events/latency_info.h" |
| 16 | 16 |
| 17 namespace content { | 17 namespace content { |
| 18 | 18 |
| 19 // Utility class for tracking the latency of events passing through | 19 // Utility class for tracking the latency of events passing through |
| 20 // a given RenderWidgetHost. | 20 // a given RenderWidgetHost. |
| 21 class CONTENT_EXPORT RenderWidgetHostLatencyTracker { | 21 class CONTENT_EXPORT RenderWidgetHostLatencyTracker { |
| 22 public: | 22 public: |
| 23 RenderWidgetHostLatencyTracker(); | 23 RenderWidgetHostLatencyTracker(); |
| 24 ~RenderWidgetHostLatencyTracker(); | 24 ~RenderWidgetHostLatencyTracker(); |
| 25 | 25 |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 int64_t latency_component_id_; | 65 int64_t latency_component_id_; |
| 66 float device_scale_factor_; | 66 float device_scale_factor_; |
| 67 bool has_seen_first_gesture_scroll_update_; | 67 bool has_seen_first_gesture_scroll_update_; |
| 68 | 68 |
| 69 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostLatencyTracker); | 69 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostLatencyTracker); |
| 70 }; | 70 }; |
| 71 | 71 |
| 72 } // namespace content | 72 } // namespace content |
| 73 | 73 |
| 74 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_RENDER_WIDGET_HOST_LATENCY_TRACKE
R_H_ | 74 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_RENDER_WIDGET_HOST_LATENCY_TRACKE
R_H_ |
| OLD | NEW |