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

Side by Side Diff: content/browser/renderer_host/render_widget_host_impl.h

Issue 17757002: Add UMA/Telemetry stats for touch event latency (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: address some of sadrul's comments Created 7 years, 5 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 unified diff | Download patch
« no previous file with comments | « no previous file | content/browser/renderer_host/render_widget_host_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_RENDER_WIDGET_HOST_IMPL_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <list> 9 #include <list>
10 #include <map> 10 #include <map>
(...skipping 480 matching lines...) Expand 10 before | Expand all | Expand 10 after
491 void SetOverscrollControllerEnabled(bool enabled); 491 void SetOverscrollControllerEnabled(bool enabled);
492 492
493 // Suppreses future char events until a keydown. See 493 // Suppreses future char events until a keydown. See
494 // suppress_next_char_events_. 494 // suppress_next_char_events_.
495 void SuppressNextCharEvents(); 495 void SuppressNextCharEvents();
496 496
497 // Indicates whether the renderer drives the RenderWidgetHosts's size or the 497 // Indicates whether the renderer drives the RenderWidgetHosts's size or the
498 // other way around. 498 // other way around.
499 bool should_auto_resize() { return should_auto_resize_; } 499 bool should_auto_resize() { return should_auto_resize_; }
500 500
501 void ComputeTouchLatency(const ui::LatencyInfo& latency_info);
501 void FrameSwapped(const ui::LatencyInfo& latency_info); 502 void FrameSwapped(const ui::LatencyInfo& latency_info);
502 503
503 // Returns the ID that uniquely describes this component to the latency 504 // Returns the ID that uniquely describes this component to the latency
504 // subsystem. 505 // subsystem.
505 int64 GetLatencyComponentId(); 506 int64 GetLatencyComponentId();
506 507
507 static void CompositorFrameDrawn(const ui::LatencyInfo& latency_info); 508 static void CompositorFrameDrawn(const ui::LatencyInfo& latency_info);
508 509
509 // Don't check whether we expected a resize ack during layout tests. 510 // Don't check whether we expected a resize ack during layout tests.
510 static void DisableResizeAckCheckForTesting(); 511 static void DisableResizeAckCheckForTesting();
(...skipping 430 matching lines...) Expand 10 before | Expand all | Expand 10 after
941 int64 last_input_number_; 942 int64 last_input_number_;
942 943
943 BrowserRenderingStats rendering_stats_; 944 BrowserRenderingStats rendering_stats_;
944 945
945 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); 946 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl);
946 }; 947 };
947 948
948 } // namespace content 949 } // namespace content
949 950
950 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ 951 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/renderer_host/render_widget_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698