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

Unified 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, 12 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/renderer_host/render_widget_host_impl.h
diff --git a/content/browser/renderer_host/render_widget_host_impl.h b/content/browser/renderer_host/render_widget_host_impl.h
index 7549ac2d3fa9199a5ee27dc8c476a1a0c73cefc9..856c0d70d0ce6182bc528e3c7826f3f74b4803d8 100644
--- a/content/browser/renderer_host/render_widget_host_impl.h
+++ b/content/browser/renderer_host/render_widget_host_impl.h
@@ -41,6 +41,7 @@ class TimeTicks;
namespace cc {
class CompositorFrame;
+struct LatencyInfo;
}
namespace ui {
@@ -403,6 +404,11 @@ class CONTENT_EXPORT RenderWidgetHostImpl : virtual public RenderWidgetHost,
void ParentChanged(gfx::NativeViewId new_parent);
#endif
+ static void NotifyFrameDisplayed(
+ int route_id,
+ int gpu_host_id,
+ const cc::LatencyInfo& latency_info);
+
// Signals that the compositing surface was updated, e.g. after a lost context
// event.
void CompositingSurfaceUpdated();
@@ -672,6 +678,13 @@ class CONTENT_EXPORT RenderWidgetHostImpl : virtual public RenderWidgetHost,
// initiated by OnBeginSmoothScroll.
void TickActiveSmoothScrollGesture();
+ // Called when an input event has arrived, to increment the input number id.
+ void IncrementInputNumber();
+
+ // Called before a message is sent that should cause the renderer to produce
+ // a new frame.
+ void SendStartFrame();
+
// Our delegate, which wants to know mainly about keyboard events.
// It will remain non-NULL until DetachDelegate() is called.
RenderWidgetHostDelegate* delegate_;
@@ -861,6 +874,9 @@ class CONTENT_EXPORT RenderWidgetHostImpl : virtual public RenderWidgetHost,
scoped_ptr<GestureEventFilter> gesture_event_filter_;
scoped_ptr<OverscrollController> overscroll_controller_;
+ bool incremented_input_number_;
+ int64 current_input_number_;
+
#if defined(OS_WIN)
std::list<HWND> dummy_windows_for_activation_;
#endif
« 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