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

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

Issue 16213002: Add telemetry to track the time an event spent waiting for the main thread. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: patch Created 7 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 unified diff | Download patch | Annotate | Revision Log
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 717 matching lines...) Expand 10 before | Expand all | Expand 10 after
728 virtual bool OnSendTouchEventImmediately( 728 virtual bool OnSendTouchEventImmediately(
729 const TouchEventWithLatencyInfo& touch_event) OVERRIDE; 729 const TouchEventWithLatencyInfo& touch_event) OVERRIDE;
730 virtual bool OnSendGestureEventImmediately( 730 virtual bool OnSendGestureEventImmediately(
731 const GestureEventWithLatencyInfo& gesture_event) OVERRIDE; 731 const GestureEventWithLatencyInfo& gesture_event) OVERRIDE;
732 virtual void OnKeyboardEventAck(const NativeWebKeyboardEvent& event, 732 virtual void OnKeyboardEventAck(const NativeWebKeyboardEvent& event,
733 InputEventAckState ack_result) OVERRIDE; 733 InputEventAckState ack_result) OVERRIDE;
734 virtual void OnWheelEventAck(const WebKit::WebMouseWheelEvent& event, 734 virtual void OnWheelEventAck(const WebKit::WebMouseWheelEvent& event,
735 InputEventAckState ack_result) OVERRIDE; 735 InputEventAckState ack_result) OVERRIDE;
736 virtual void OnTouchEventAck(const TouchEventWithLatencyInfo& event, 736 virtual void OnTouchEventAck(const TouchEventWithLatencyInfo& event,
737 InputEventAckState ack_result) OVERRIDE; 737 InputEventAckState ack_result) OVERRIDE;
738 virtual void OnGestureEventAck(const WebKit::WebGestureEvent& event, 738 virtual void OnGestureEventAck(const GestureEventWithLatencyInfo& event,
739 InputEventAckState ack_result) OVERRIDE; 739 InputEventAckState ack_result) OVERRIDE;
740 virtual void OnUnexpectedEventAck(bool bad_message) OVERRIDE; 740 virtual void OnUnexpectedEventAck(bool bad_message) OVERRIDE;
741 741
742 void SimulateTouchGestureWithMouse(const WebKit::WebMouseEvent& mouse_event); 742 void SimulateTouchGestureWithMouse(const WebKit::WebMouseEvent& mouse_event);
743 743
744 // Called when there is a new auto resize (using a post to avoid a stack 744 // Called when there is a new auto resize (using a post to avoid a stack
745 // which may get in recursive loops). 745 // which may get in recursive loops).
746 void DelayedAutoResized(); 746 void DelayedAutoResized();
747 747
748 // Helper function to record impl thread to main thread event latency.
749 void UpdateRenderingStatsForImplThreadLatency(
750 WebKit::WebInputEvent::Type type,
751 const ui::LatencyInfo& latency_info);
748 752
749 // Our delegate, which wants to know mainly about keyboard events. 753 // Our delegate, which wants to know mainly about keyboard events.
750 // It will remain non-NULL until DetachDelegate() is called. 754 // It will remain non-NULL until DetachDelegate() is called.
751 RenderWidgetHostDelegate* delegate_; 755 RenderWidgetHostDelegate* delegate_;
752 756
753 // Created during construction but initialized during Init*(). Therefore, it 757 // Created during construction but initialized during Init*(). Therefore, it
754 // is guaranteed never to be NULL, but its channel may be NULL if the 758 // is guaranteed never to be NULL, but its channel may be NULL if the
755 // renderer crashed, so you must always check that. 759 // renderer crashed, so you must always check that.
756 RenderProcessHost* process_; 760 RenderProcessHost* process_;
757 761
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
916 int64 last_input_number_; 920 int64 last_input_number_;
917 921
918 BrowserRenderingStats rendering_stats_; 922 BrowserRenderingStats rendering_stats_;
919 923
920 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); 924 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl);
921 }; 925 };
922 926
923 } // namespace content 927 } // namespace content
924 928
925 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ 929 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698