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

Side by Side 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, 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 // IPC messages for page rendering. 5 // IPC messages for page rendering.
6 // Multiply-included message file, hence no include guard. 6 // Multiply-included message file, hence no include guard.
7 7
8 #include "base/process.h" 8 #include "base/process.h"
9 #include "base/shared_memory.h" 9 #include "base/shared_memory.h"
10 #include "base/string16.h" 10 #include "base/string16.h"
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupType.h" 44 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupType.h"
45 #include "third_party/WebKit/Source/WebKit/chromium/public/WebScreenInfo.h" 45 #include "third_party/WebKit/Source/WebKit/chromium/public/WebScreenInfo.h"
46 #include "third_party/WebKit/Source/WebKit/chromium/public/WebTextDirection.h" 46 #include "third_party/WebKit/Source/WebKit/chromium/public/WebTextDirection.h"
47 #include "ui/base/dialogs/selected_file_info.h" 47 #include "ui/base/dialogs/selected_file_info.h"
48 #include "ui/base/ime/text_input_type.h" 48 #include "ui/base/ime/text_input_type.h"
49 #include "ui/base/range/range.h" 49 #include "ui/base/range/range.h"
50 #include "ui/gfx/point.h" 50 #include "ui/gfx/point.h"
51 #include "ui/gfx/rect.h" 51 #include "ui/gfx/rect.h"
52 #include "ui/gfx/rect_f.h" 52 #include "ui/gfx/rect_f.h"
53 #include "ui/gfx/vector2d.h" 53 #include "ui/gfx/vector2d.h"
54 #include "webkit/compositor_bindings/web_latency_info_impl.h"
54 #include "webkit/glue/webcookie.h" 55 #include "webkit/glue/webcookie.h"
55 #include "webkit/glue/webmenuitem.h" 56 #include "webkit/glue/webmenuitem.h"
56 #include "webkit/plugins/npapi/webplugin.h" 57 #include "webkit/plugins/npapi/webplugin.h"
57 58
58 #if defined(OS_MACOSX) 59 #if defined(OS_MACOSX)
59 #include "content/common/mac/font_descriptor.h" 60 #include "content/common/mac/font_descriptor.h"
60 #endif 61 #endif
61 62
62 #undef IPC_MESSAGE_EXPORT 63 #undef IPC_MESSAGE_EXPORT
63 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT 64 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
281 IPC_STRUCT_TRAITS_MEMBER(params) 282 IPC_STRUCT_TRAITS_MEMBER(params)
282 IPC_STRUCT_TRAITS_MEMBER(time) 283 IPC_STRUCT_TRAITS_MEMBER(time)
283 IPC_STRUCT_TRAITS_END() 284 IPC_STRUCT_TRAITS_END()
284 285
285 IPC_STRUCT_TRAITS_BEGIN(ui::SelectedFileInfo) 286 IPC_STRUCT_TRAITS_BEGIN(ui::SelectedFileInfo)
286 IPC_STRUCT_TRAITS_MEMBER(file_path) 287 IPC_STRUCT_TRAITS_MEMBER(file_path)
287 IPC_STRUCT_TRAITS_MEMBER(local_path) 288 IPC_STRUCT_TRAITS_MEMBER(local_path)
288 IPC_STRUCT_TRAITS_MEMBER(display_name) 289 IPC_STRUCT_TRAITS_MEMBER(display_name)
289 IPC_STRUCT_TRAITS_END() 290 IPC_STRUCT_TRAITS_END()
290 291
292 IPC_STRUCT_TRAITS_BEGIN(cc::LatencyInfo)
293 IPC_STRUCT_TRAITS_MEMBER(inputNumber)
294 IPC_STRUCT_TRAITS_MEMBER(rendererMainFrameNumber)
295 IPC_STRUCT_TRAITS_MEMBER(rendererImplFrameNumber)
296 IPC_STRUCT_TRAITS_MEMBER(browserMainFrameNumber)
297 IPC_STRUCT_TRAITS_MEMBER(browserImplFrameNumber)
298 IPC_STRUCT_TRAITS_MEMBER(swapTimestamp)
299 IPC_STRUCT_TRAITS_END()
300
291 IPC_STRUCT_BEGIN(ViewHostMsg_CreateWindow_Params) 301 IPC_STRUCT_BEGIN(ViewHostMsg_CreateWindow_Params)
292 // Routing ID of the view initiating the open. 302 // Routing ID of the view initiating the open.
293 IPC_STRUCT_MEMBER(int, opener_id) 303 IPC_STRUCT_MEMBER(int, opener_id)
294 304
295 // True if this open request came in the context of a user gesture. 305 // True if this open request came in the context of a user gesture.
296 IPC_STRUCT_MEMBER(bool, user_gesture) 306 IPC_STRUCT_MEMBER(bool, user_gesture)
297 307
298 // Type of window requested. 308 // Type of window requested.
299 IPC_STRUCT_MEMBER(WindowContainerType, window_container_type) 309 IPC_STRUCT_MEMBER(WindowContainerType, window_container_type)
300 310
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
499 // request messages. 509 // request messages.
500 IPC_STRUCT_MEMBER(int, flags) 510 IPC_STRUCT_MEMBER(int, flags)
501 511
502 // Whether or not the renderer expects a ViewMsg_UpdateRect_ACK for this 512 // Whether or not the renderer expects a ViewMsg_UpdateRect_ACK for this
503 // update. True for 2D painting, but false for accelerated compositing. 513 // update. True for 2D painting, but false for accelerated compositing.
504 IPC_STRUCT_MEMBER(bool, needs_ack) 514 IPC_STRUCT_MEMBER(bool, needs_ack)
505 515
506 // All the above coordinates are in DIP. This is the scale factor needed 516 // All the above coordinates are in DIP. This is the scale factor needed
507 // to convert them to pixels. 517 // to convert them to pixels.
508 IPC_STRUCT_MEMBER(float, scale_factor) 518 IPC_STRUCT_MEMBER(float, scale_factor)
519
520 // The frame number this update rect corresponds to.
521 IPC_STRUCT_MEMBER(cc::LatencyInfo, latency_info)
509 IPC_STRUCT_END() 522 IPC_STRUCT_END()
510 523
511 IPC_STRUCT_BEGIN(ViewMsg_PostMessage_Params) 524 IPC_STRUCT_BEGIN(ViewMsg_PostMessage_Params)
512 // The serialized script value. 525 // The serialized script value.
513 IPC_STRUCT_MEMBER(string16, data) 526 IPC_STRUCT_MEMBER(string16, data)
514 527
515 // When sent to the browser, this is the routing ID of the source frame in 528 // When sent to the browser, this is the routing ID of the source frame in
516 // the source process. The browser replaces it with the routing ID of the 529 // the source process. The browser replaces it with the routing ID of the
517 // equivalent (swapped out) frame in the destination process. 530 // equivalent (swapped out) frame in the destination process.
518 IPC_STRUCT_MEMBER(int, source_routing_id) 531 IPC_STRUCT_MEMBER(int, source_routing_id)
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after
810 823
811 // Tells the render view that a SwapBuffers was completed. Typically, 824 // Tells the render view that a SwapBuffers was completed. Typically,
812 // SwapBuffers requests go from renderer -> GPU process -> browser. Most 825 // SwapBuffers requests go from renderer -> GPU process -> browser. Most
813 // platforms still use the GfxCxt3D Echo for receiving the SwapBuffers Ack. 826 // platforms still use the GfxCxt3D Echo for receiving the SwapBuffers Ack.
814 // Using Echo routes the ack from browser -> GPU process -> renderer, while this 827 // Using Echo routes the ack from browser -> GPU process -> renderer, while this
815 // Ack goes directly from browser -> renderer. This is not used for the threaded 828 // Ack goes directly from browser -> renderer. This is not used for the threaded
816 // compositor path. 829 // compositor path.
817 IPC_MESSAGE_ROUTED0(ViewMsg_SwapBuffers_ACK) 830 IPC_MESSAGE_ROUTED0(ViewMsg_SwapBuffers_ACK)
818 831
819 // Sends an input event to the render widget. 832 // Sends an input event to the render widget.
820 IPC_MESSAGE_ROUTED2(ViewMsg_HandleInputEvent, 833 IPC_MESSAGE_ROUTED3(ViewMsg_HandleInputEvent,
834 int64 /* input_number */,
821 IPC::WebInputEventPointer /* event */, 835 IPC::WebInputEventPointer /* event */,
822 bool /* is_keyboard_shortcut */) 836 bool /* is_keyboard_shortcut */)
823 837
838 // A new frame with a new input number has started.
839 IPC_MESSAGE_ROUTED1(ViewMsg_StartFrame,
840 int64 /* input_number */)
841
824 // Tells the render widget that a smooth scroll completed. 842 // Tells the render widget that a smooth scroll completed.
825 IPC_MESSAGE_ROUTED1(ViewMsg_SmoothScrollCompleted, 843 IPC_MESSAGE_ROUTED1(ViewMsg_SmoothScrollCompleted,
826 int /* gesture_id */) 844 int /* gesture_id */)
827 845
828 // This message notifies the renderer that the next key event is bound to one 846 // This message notifies the renderer that the next key event is bound to one
829 // or more pre-defined edit commands. If the next key event is not handled 847 // or more pre-defined edit commands. If the next key event is not handled
830 // by webkit, the specified edit commands shall be executed against current 848 // by webkit, the specified edit commands shall be executed against current
831 // focused frame. 849 // focused frame.
832 // Parameters 850 // Parameters
833 // * edit_commands (see chrome/common/edit_command_types.h) 851 // * edit_commands (see chrome/common/edit_command_types.h)
(...skipping 1518 matching lines...) Expand 10 before | Expand all | Expand 10 after
2352 int /* arb_robustness_status_code */) 2370 int /* arb_robustness_status_code */)
2353 2371
2354 #if defined(OS_WIN) 2372 #if defined(OS_WIN)
2355 // Request that the given font characters be loaded by the browser so it's 2373 // Request that the given font characters be loaded by the browser so it's
2356 // cached by the OS. Please see RenderMessageFilter::OnPreCacheFontCharacters 2374 // cached by the OS. Please see RenderMessageFilter::OnPreCacheFontCharacters
2357 // for details. 2375 // for details.
2358 IPC_SYNC_MESSAGE_CONTROL2_0(ViewHostMsg_PreCacheFontCharacters, 2376 IPC_SYNC_MESSAGE_CONTROL2_0(ViewHostMsg_PreCacheFontCharacters,
2359 LOGFONT /* font_data */, 2377 LOGFONT /* font_data */,
2360 string16 /* characters */) 2378 string16 /* characters */)
2361 #endif 2379 #endif
OLDNEW
« 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