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

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

Issue 11293121: Add latency measurement system (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: minor input event changes Created 8 years 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 29 matching lines...) Expand all
40 40
41 namespace ui { 41 namespace ui {
42 class KeyEvent; 42 class KeyEvent;
43 class Range; 43 class Range;
44 } 44 }
45 45
46 namespace WebKit { 46 namespace WebKit {
47 class WebInputEvent; 47 class WebInputEvent;
48 class WebMouseEvent; 48 class WebMouseEvent;
49 struct WebCompositionUnderline; 49 struct WebCompositionUnderline;
50 struct WebLatencyInfoImpl;
50 struct WebScreenInfo; 51 struct WebScreenInfo;
51 } 52 }
52 53
53 #if defined(OS_ANDROID) 54 #if defined(OS_ANDROID)
54 namespace WebKit { 55 namespace WebKit {
55 class WebLayer; 56 class WebLayer;
56 } 57 }
57 #endif 58 #endif
58 59
59 namespace content { 60 namespace content {
(...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after
405 // nothing if the compositor thread is enabled. 406 // nothing if the compositor thread is enabled.
406 // TODO(jbates) Once the compositor thread is always on, this can be removed. 407 // TODO(jbates) Once the compositor thread is always on, this can be removed.
407 void AcknowledgeSwapBuffersToRenderer(); 408 void AcknowledgeSwapBuffersToRenderer();
408 409
409 #if defined(USE_AURA) 410 #if defined(USE_AURA)
410 // Called by the view when the parent changes. If a parent isn't available, 411 // Called by the view when the parent changes. If a parent isn't available,
411 // NULL is used. 412 // NULL is used.
412 void ParentChanged(gfx::NativeViewId new_parent); 413 void ParentChanged(gfx::NativeViewId new_parent);
413 #endif 414 #endif
414 415
416 static void NotifyFrameDisplayed(
417 int route_id,
418 int gpu_host_id,
419 const WebKit::WebLatencyInfoImpl& latency_info);
420
415 // Signals that the compositing surface was updated, e.g. after a lost context 421 // Signals that the compositing surface was updated, e.g. after a lost context
416 // event. 422 // event.
417 void CompositingSurfaceUpdated(); 423 void CompositingSurfaceUpdated();
418 424
419 void set_allow_privileged_mouse_lock(bool allow) { 425 void set_allow_privileged_mouse_lock(bool allow) {
420 allow_privileged_mouse_lock_ = allow; 426 allow_privileged_mouse_lock_ = allow;
421 } 427 }
422 428
423 // Resets state variables related to tracking pending size and painting. 429 // Resets state variables related to tracking pending size and painting.
424 // 430 //
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after
677 void ProcessTouchAck(InputEventAckState ack_result); 683 void ProcessTouchAck(InputEventAckState ack_result);
678 684
679 // Called when there is a new auto resize (using a post to avoid a stack 685 // Called when there is a new auto resize (using a post to avoid a stack
680 // which may get in recursive loops). 686 // which may get in recursive loops).
681 void DelayedAutoResized(); 687 void DelayedAutoResized();
682 688
683 // Called periodically to advance the active scroll gesture after being 689 // Called periodically to advance the active scroll gesture after being
684 // initiated by OnMsgBeginSmoothScroll. 690 // initiated by OnMsgBeginSmoothScroll.
685 void TickActiveSmoothScrollGesture(); 691 void TickActiveSmoothScrollGesture();
686 692
693 // Called when an input event has arrived, to increment the input number id.
694 void IncrementInputNumber();
695
696 // Called before a message is sent that should cause the renderer to produce
697 // a new frame.
698 void SendStartFrame();
699
687 // Our delegate, which wants to know mainly about keyboard events. 700 // Our delegate, which wants to know mainly about keyboard events.
688 // It will remain non-NULL until DetachDelegate() is called. 701 // It will remain non-NULL until DetachDelegate() is called.
689 RenderWidgetHostDelegate* delegate_; 702 RenderWidgetHostDelegate* delegate_;
690 703
691 // Created during construction but initialized during Init*(). Therefore, it 704 // Created during construction but initialized during Init*(). Therefore, it
692 // is guaranteed never to be NULL, but its channel may be NULL if the 705 // is guaranteed never to be NULL, but its channel may be NULL if the
693 // renderer crashed, so you must always check that. 706 // renderer crashed, so you must always check that.
694 RenderProcessHost* process_; 707 RenderProcessHost* process_;
695 708
696 // The ID of the corresponding object in the Renderer Instance. 709 // The ID of the corresponding object in the Renderer Instance.
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
866 typedef std::map<int, scoped_refptr<SmoothScrollGesture> > 879 typedef std::map<int, scoped_refptr<SmoothScrollGesture> >
867 SmoothScrollGestureMap; 880 SmoothScrollGestureMap;
868 SmoothScrollGestureMap active_smooth_scroll_gestures_; 881 SmoothScrollGestureMap active_smooth_scroll_gestures_;
869 base::TimeTicks last_smooth_scroll_gestures_tick_time_; 882 base::TimeTicks last_smooth_scroll_gestures_tick_time_;
870 bool tick_active_smooth_scroll_gestures_task_posted_; 883 bool tick_active_smooth_scroll_gestures_task_posted_;
871 884
872 scoped_ptr<TouchEventQueue> touch_event_queue_; 885 scoped_ptr<TouchEventQueue> touch_event_queue_;
873 scoped_ptr<GestureEventFilter> gesture_event_filter_; 886 scoped_ptr<GestureEventFilter> gesture_event_filter_;
874 scoped_ptr<OverscrollController> overscroll_controller_; 887 scoped_ptr<OverscrollController> overscroll_controller_;
875 888
889 bool incremented_input_number_;
890 int64 current_input_number_;
891
876 #if defined(OS_WIN) 892 #if defined(OS_WIN)
877 std::list<HWND> dummy_windows_for_activation_; 893 std::list<HWND> dummy_windows_for_activation_;
878 #endif 894 #endif
879 895
880 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); 896 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl);
881 }; 897 };
882 898
883 } // namespace content 899 } // namespace content
884 900
885 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ 901 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698