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

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: create cc::LatencyInfo Created 7 years, 11 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 23 matching lines...) Expand all
34 struct ViewHostMsg_UpdateRect_Params; 34 struct ViewHostMsg_UpdateRect_Params;
35 struct ViewHostMsg_TextInputState_Params; 35 struct ViewHostMsg_TextInputState_Params;
36 struct ViewHostMsg_BeginSmoothScroll_Params; 36 struct ViewHostMsg_BeginSmoothScroll_Params;
37 37
38 namespace base { 38 namespace base {
39 class TimeTicks; 39 class TimeTicks;
40 } 40 }
41 41
42 namespace cc { 42 namespace cc {
43 class CompositorFrame; 43 class CompositorFrame;
44 struct LatencyInfo;
44 } 45 }
45 46
46 namespace ui { 47 namespace ui {
47 class KeyEvent; 48 class KeyEvent;
48 class Range; 49 class Range;
49 } 50 }
50 51
51 namespace WebKit { 52 namespace WebKit {
52 class WebInputEvent; 53 class WebInputEvent;
53 class WebMouseEvent; 54 class WebMouseEvent;
(...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after
396 // nothing if the compositor thread is enabled. 397 // nothing if the compositor thread is enabled.
397 // TODO(jbates) Once the compositor thread is always on, this can be removed. 398 // TODO(jbates) Once the compositor thread is always on, this can be removed.
398 void AcknowledgeSwapBuffersToRenderer(); 399 void AcknowledgeSwapBuffersToRenderer();
399 400
400 #if defined(USE_AURA) 401 #if defined(USE_AURA)
401 // Called by the view when the parent changes. If a parent isn't available, 402 // Called by the view when the parent changes. If a parent isn't available,
402 // NULL is used. 403 // NULL is used.
403 void ParentChanged(gfx::NativeViewId new_parent); 404 void ParentChanged(gfx::NativeViewId new_parent);
404 #endif 405 #endif
405 406
407 static void NotifyFrameDisplayed(
408 int route_id,
409 int gpu_host_id,
410 const cc::LatencyInfo& latency_info);
411
406 // Signals that the compositing surface was updated, e.g. after a lost context 412 // Signals that the compositing surface was updated, e.g. after a lost context
407 // event. 413 // event.
408 void CompositingSurfaceUpdated(); 414 void CompositingSurfaceUpdated();
409 415
410 void set_allow_privileged_mouse_lock(bool allow) { 416 void set_allow_privileged_mouse_lock(bool allow) {
411 allow_privileged_mouse_lock_ = allow; 417 allow_privileged_mouse_lock_ = allow;
412 } 418 }
413 419
414 // Resets state variables related to tracking pending size and painting. 420 // Resets state variables related to tracking pending size and painting.
415 // 421 //
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after
665 void ProcessTouchAck(InputEventAckState ack_result); 671 void ProcessTouchAck(InputEventAckState ack_result);
666 672
667 // Called when there is a new auto resize (using a post to avoid a stack 673 // Called when there is a new auto resize (using a post to avoid a stack
668 // which may get in recursive loops). 674 // which may get in recursive loops).
669 void DelayedAutoResized(); 675 void DelayedAutoResized();
670 676
671 // Called periodically to advance the active scroll gesture after being 677 // Called periodically to advance the active scroll gesture after being
672 // initiated by OnBeginSmoothScroll. 678 // initiated by OnBeginSmoothScroll.
673 void TickActiveSmoothScrollGesture(); 679 void TickActiveSmoothScrollGesture();
674 680
681 // Called when an input event has arrived, to increment the input number id.
682 void IncrementInputNumber();
683
684 // Called before a message is sent that should cause the renderer to produce
685 // a new frame.
686 void SendStartFrame();
687
675 // Our delegate, which wants to know mainly about keyboard events. 688 // Our delegate, which wants to know mainly about keyboard events.
676 // It will remain non-NULL until DetachDelegate() is called. 689 // It will remain non-NULL until DetachDelegate() is called.
677 RenderWidgetHostDelegate* delegate_; 690 RenderWidgetHostDelegate* delegate_;
678 691
679 // Created during construction but initialized during Init*(). Therefore, it 692 // Created during construction but initialized during Init*(). Therefore, it
680 // is guaranteed never to be NULL, but its channel may be NULL if the 693 // is guaranteed never to be NULL, but its channel may be NULL if the
681 // renderer crashed, so you must always check that. 694 // renderer crashed, so you must always check that.
682 RenderProcessHost* process_; 695 RenderProcessHost* process_;
683 696
684 // The ID of the corresponding object in the Renderer Instance. 697 // The ID of the corresponding object in the Renderer Instance.
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
854 typedef std::map<int, scoped_refptr<SmoothScrollGesture> > 867 typedef std::map<int, scoped_refptr<SmoothScrollGesture> >
855 SmoothScrollGestureMap; 868 SmoothScrollGestureMap;
856 SmoothScrollGestureMap active_smooth_scroll_gestures_; 869 SmoothScrollGestureMap active_smooth_scroll_gestures_;
857 base::TimeTicks last_smooth_scroll_gestures_tick_time_; 870 base::TimeTicks last_smooth_scroll_gestures_tick_time_;
858 bool tick_active_smooth_scroll_gestures_task_posted_; 871 bool tick_active_smooth_scroll_gestures_task_posted_;
859 872
860 scoped_ptr<TouchEventQueue> touch_event_queue_; 873 scoped_ptr<TouchEventQueue> touch_event_queue_;
861 scoped_ptr<GestureEventFilter> gesture_event_filter_; 874 scoped_ptr<GestureEventFilter> gesture_event_filter_;
862 scoped_ptr<OverscrollController> overscroll_controller_; 875 scoped_ptr<OverscrollController> overscroll_controller_;
863 876
877 bool incremented_input_number_;
878 int64 current_input_number_;
879
864 #if defined(OS_WIN) 880 #if defined(OS_WIN)
865 std::list<HWND> dummy_windows_for_activation_; 881 std::list<HWND> dummy_windows_for_activation_;
866 #endif 882 #endif
867 883
868 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); 884 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl);
869 }; 885 };
870 886
871 } // namespace content 887 } // namespace content
872 888
873 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ 889 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/image_transport_factory.cc ('k') | content/browser/renderer_host/render_widget_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698