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

Unified Diff: content/common/view_messages.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
« no previous file with comments | « content/common/gpu/texture_image_transport_surface.cc ('k') | content/public/test/render_view_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/view_messages.h
diff --git a/content/common/view_messages.h b/content/common/view_messages.h
index aedac37756a11d5070e67bf3d8a48edc66cb1726..14d7ea13dee7a1ecce126e460bd4232dbb144089 100644
--- a/content/common/view_messages.h
+++ b/content/common/view_messages.h
@@ -51,6 +51,7 @@
#include "ui/gfx/rect.h"
#include "ui/gfx/rect_f.h"
#include "ui/gfx/vector2d.h"
+#include "webkit/compositor_bindings/web_latency_info_impl.h"
#include "webkit/glue/webcookie.h"
#include "webkit/glue/webmenuitem.h"
#include "webkit/plugins/npapi/webplugin.h"
@@ -288,6 +289,15 @@ IPC_STRUCT_TRAITS_BEGIN(ui::SelectedFileInfo)
IPC_STRUCT_TRAITS_MEMBER(display_name)
IPC_STRUCT_TRAITS_END()
+IPC_STRUCT_TRAITS_BEGIN(cc::LatencyInfo)
+ IPC_STRUCT_TRAITS_MEMBER(inputNumber)
+ IPC_STRUCT_TRAITS_MEMBER(rendererMainFrameNumber)
+ IPC_STRUCT_TRAITS_MEMBER(rendererImplFrameNumber)
+ IPC_STRUCT_TRAITS_MEMBER(browserMainFrameNumber)
+ IPC_STRUCT_TRAITS_MEMBER(browserImplFrameNumber)
+ IPC_STRUCT_TRAITS_MEMBER(swapTimestamp)
+IPC_STRUCT_TRAITS_END()
+
IPC_STRUCT_BEGIN(ViewHostMsg_CreateWindow_Params)
// Routing ID of the view initiating the open.
IPC_STRUCT_MEMBER(int, opener_id)
@@ -506,6 +516,9 @@ IPC_STRUCT_BEGIN(ViewHostMsg_UpdateRect_Params)
// All the above coordinates are in DIP. This is the scale factor needed
// to convert them to pixels.
IPC_STRUCT_MEMBER(float, scale_factor)
+
+ // The frame number this update rect corresponds to.
+ IPC_STRUCT_MEMBER(cc::LatencyInfo, latency_info)
IPC_STRUCT_END()
IPC_STRUCT_BEGIN(ViewMsg_PostMessage_Params)
@@ -817,10 +830,15 @@ IPC_MESSAGE_ROUTED0(ViewMsg_UpdateRect_ACK)
IPC_MESSAGE_ROUTED0(ViewMsg_SwapBuffers_ACK)
// Sends an input event to the render widget.
-IPC_MESSAGE_ROUTED2(ViewMsg_HandleInputEvent,
+IPC_MESSAGE_ROUTED3(ViewMsg_HandleInputEvent,
+ int64 /* input_number */,
IPC::WebInputEventPointer /* event */,
bool /* is_keyboard_shortcut */)
+// A new frame with a new input number has started.
+IPC_MESSAGE_ROUTED1(ViewMsg_StartFrame,
+ int64 /* input_number */)
+
// Tells the render widget that a smooth scroll completed.
IPC_MESSAGE_ROUTED1(ViewMsg_SmoothScrollCompleted,
int /* gesture_id */)
« no previous file with comments | « content/common/gpu/texture_image_transport_surface.cc ('k') | content/public/test/render_view_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698