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

Side by Side Diff: content/common/gpu/gpu_messages.h

Issue 123563002: Remove gpu side LatencyInfo merging (Closed) Base URL: http://git.chromium.org/chromium/src.git@gpu-per-event-latency-6-small
Patch Set: fix mac_rel compiler error. Move kMaxLatencyInfoNumber to .cc file Created 6 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
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 // Multiply-included message file, hence no include guard here, but see below 5 // Multiply-included message file, hence no include guard here, but see below
6 // for a much smaller-than-usual include guard section. 6 // for a much smaller-than-usual include guard section.
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 48
49 #undef IPC_MESSAGE_EXPORT 49 #undef IPC_MESSAGE_EXPORT
50 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT 50 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT
51 IPC_STRUCT_BEGIN(GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params) 51 IPC_STRUCT_BEGIN(GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params)
52 IPC_STRUCT_MEMBER(int32, surface_id) 52 IPC_STRUCT_MEMBER(int32, surface_id)
53 IPC_STRUCT_MEMBER(uint64, surface_handle) 53 IPC_STRUCT_MEMBER(uint64, surface_handle)
54 IPC_STRUCT_MEMBER(int32, route_id) 54 IPC_STRUCT_MEMBER(int32, route_id)
55 IPC_STRUCT_MEMBER(std::string, mailbox_name) 55 IPC_STRUCT_MEMBER(std::string, mailbox_name)
56 IPC_STRUCT_MEMBER(gfx::Size, size) 56 IPC_STRUCT_MEMBER(gfx::Size, size)
57 IPC_STRUCT_MEMBER(float, scale_factor) 57 IPC_STRUCT_MEMBER(float, scale_factor)
58 IPC_STRUCT_MEMBER(ui::LatencyInfo, latency_info) 58 IPC_STRUCT_MEMBER(std::vector<ui::LatencyInfo>, latency_info)
59 IPC_STRUCT_END() 59 IPC_STRUCT_END()
60 60
61 IPC_STRUCT_BEGIN(GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params) 61 IPC_STRUCT_BEGIN(GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params)
62 IPC_STRUCT_MEMBER(int32, surface_id) 62 IPC_STRUCT_MEMBER(int32, surface_id)
63 IPC_STRUCT_MEMBER(uint64, surface_handle) 63 IPC_STRUCT_MEMBER(uint64, surface_handle)
64 IPC_STRUCT_MEMBER(int32, route_id) 64 IPC_STRUCT_MEMBER(int32, route_id)
65 IPC_STRUCT_MEMBER(int, x) 65 IPC_STRUCT_MEMBER(int, x)
66 IPC_STRUCT_MEMBER(int, y) 66 IPC_STRUCT_MEMBER(int, y)
67 IPC_STRUCT_MEMBER(int, width) 67 IPC_STRUCT_MEMBER(int, width)
68 IPC_STRUCT_MEMBER(int, height) 68 IPC_STRUCT_MEMBER(int, height)
69 IPC_STRUCT_MEMBER(std::string, mailbox_name) 69 IPC_STRUCT_MEMBER(std::string, mailbox_name)
70 IPC_STRUCT_MEMBER(gfx::Size, surface_size) 70 IPC_STRUCT_MEMBER(gfx::Size, surface_size)
71 IPC_STRUCT_MEMBER(float, surface_scale_factor) 71 IPC_STRUCT_MEMBER(float, surface_scale_factor)
72 IPC_STRUCT_MEMBER(ui::LatencyInfo, latency_info) 72 IPC_STRUCT_MEMBER(std::vector<ui::LatencyInfo>, latency_info)
73 IPC_STRUCT_END() 73 IPC_STRUCT_END()
74 #undef IPC_MESSAGE_EXPORT 74 #undef IPC_MESSAGE_EXPORT
75 #define IPC_MESSAGE_EXPORT 75 #define IPC_MESSAGE_EXPORT
76 76
77 IPC_STRUCT_BEGIN(GpuHostMsg_AcceleratedSurfaceRelease_Params) 77 IPC_STRUCT_BEGIN(GpuHostMsg_AcceleratedSurfaceRelease_Params)
78 IPC_STRUCT_MEMBER(int32, surface_id) 78 IPC_STRUCT_MEMBER(int32, surface_id)
79 IPC_STRUCT_END() 79 IPC_STRUCT_END()
80 80
81 IPC_STRUCT_BEGIN(AcceleratedSurfaceMsg_BufferPresented_Params) 81 IPC_STRUCT_BEGIN(AcceleratedSurfaceMsg_BufferPresented_Params)
82 IPC_STRUCT_MEMBER(std::string, mailbox_name) 82 IPC_STRUCT_MEMBER(std::string, mailbox_name)
(...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after
396 gfx::Size /* size */) 396 gfx::Size /* size */)
397 397
398 // Tells the browser that a new accelerated surface was initialized. 398 // Tells the browser that a new accelerated surface was initialized.
399 IPC_MESSAGE_CONTROL2(GpuHostMsg_AcceleratedSurfaceInitialized, 399 IPC_MESSAGE_CONTROL2(GpuHostMsg_AcceleratedSurfaceInitialized,
400 int32 /* surface_id */, 400 int32 /* surface_id */,
401 int32 /* route_id */) 401 int32 /* route_id */)
402 402
403 // Tells the browser that a frame with the specific latency info was drawn to 403 // Tells the browser that a frame with the specific latency info was drawn to
404 // the screen 404 // the screen
405 IPC_MESSAGE_CONTROL1(GpuHostMsg_FrameDrawn, 405 IPC_MESSAGE_CONTROL1(GpuHostMsg_FrameDrawn,
406 ui::LatencyInfo /* latency_info */) 406 std::vector<ui::LatencyInfo> /* latency_info */)
407 407
408 // Same as above with a rect of the part of the surface that changed. 408 // Same as above with a rect of the part of the surface that changed.
409 IPC_MESSAGE_CONTROL1(GpuHostMsg_AcceleratedSurfaceBuffersSwapped, 409 IPC_MESSAGE_CONTROL1(GpuHostMsg_AcceleratedSurfaceBuffersSwapped,
410 GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params) 410 GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params)
411 411
412 // This message notifies the browser process that the renderer 412 // This message notifies the browser process that the renderer
413 // swapped a portion of the buffers associated with the given "window", which 413 // swapped a portion of the buffers associated with the given "window", which
414 // should cause the browser to redraw the compositor's contents. 414 // should cause the browser to redraw the compositor's contents.
415 IPC_MESSAGE_CONTROL1(GpuHostMsg_AcceleratedSurfacePostSubBuffer, 415 IPC_MESSAGE_CONTROL1(GpuHostMsg_AcceleratedSurfacePostSubBuffer,
416 GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params) 416 GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params)
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
560 // Asynchronously synchronize the put and get offsets of both processes. 560 // Asynchronously synchronize the put and get offsets of both processes.
561 // Caller passes its current put offset. Current state (including get offset) 561 // Caller passes its current put offset. Current state (including get offset)
562 // is returned in shared memory. 562 // is returned in shared memory.
563 IPC_MESSAGE_ROUTED2(GpuCommandBufferMsg_AsyncFlush, 563 IPC_MESSAGE_ROUTED2(GpuCommandBufferMsg_AsyncFlush,
564 int32 /* put_offset */, 564 int32 /* put_offset */,
565 uint32 /* flush_count */) 565 uint32 /* flush_count */)
566 566
567 // Sends information about the latency of the current frame to the GPU 567 // Sends information about the latency of the current frame to the GPU
568 // process. 568 // process.
569 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_SetLatencyInfo, 569 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_SetLatencyInfo,
570 ui::LatencyInfo /* latency_info */) 570 std::vector<ui::LatencyInfo> /* latency_info */)
571 571
572 // Asynchronously process any commands known to the GPU process. This is only 572 // Asynchronously process any commands known to the GPU process. This is only
573 // used in the event that a channel is unscheduled and needs to be flushed 573 // used in the event that a channel is unscheduled and needs to be flushed
574 // again to process any commands issued subsequent to unscheduling. The GPU 574 // again to process any commands issued subsequent to unscheduling. The GPU
575 // process actually sends it (deferred) to itself. 575 // process actually sends it (deferred) to itself.
576 IPC_MESSAGE_ROUTED0(GpuCommandBufferMsg_Rescheduled) 576 IPC_MESSAGE_ROUTED0(GpuCommandBufferMsg_Rescheduled)
577 577
578 // Sent by the GPU process to display messages in the console. 578 // Sent by the GPU process to display messages in the console.
579 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_ConsoleMsg, 579 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_ConsoleMsg,
580 GPUCommandBufferConsoleMessage /* msg */) 580 GPUCommandBufferConsoleMessage /* msg */)
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
797 797
798 // Notify the renderer that an output buffer has been filled with encoded data. 798 // Notify the renderer that an output buffer has been filled with encoded data.
799 IPC_MESSAGE_ROUTED3(AcceleratedVideoEncoderHostMsg_BitstreamBufferReady, 799 IPC_MESSAGE_ROUTED3(AcceleratedVideoEncoderHostMsg_BitstreamBufferReady,
800 int32 /* bitstream_buffer_id */, 800 int32 /* bitstream_buffer_id */,
801 uint32 /* payload_size */, 801 uint32 /* payload_size */,
802 bool /* key_frame */) 802 bool /* key_frame */)
803 803
804 // Report error condition. 804 // Report error condition.
805 IPC_MESSAGE_ROUTED1(AcceleratedVideoEncoderHostMsg_NotifyError, 805 IPC_MESSAGE_ROUTED1(AcceleratedVideoEncoderHostMsg_NotifyError,
806 media::VideoEncodeAccelerator::Error /* error */) 806 media::VideoEncodeAccelerator::Error /* error */)
OLDNEW
« no previous file with comments | « content/common/gpu/gpu_command_buffer_stub.cc ('k') | content/common/gpu/image_transport_surface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698