OLD | NEW |
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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 IPC_STRUCT_MEMBER(int32, share_group_id) | 69 IPC_STRUCT_MEMBER(int32, share_group_id) |
70 IPC_STRUCT_MEMBER(std::vector<int>, attribs) | 70 IPC_STRUCT_MEMBER(std::vector<int>, attribs) |
71 IPC_STRUCT_MEMBER(GURL, active_url) | 71 IPC_STRUCT_MEMBER(GURL, active_url) |
72 IPC_STRUCT_MEMBER(gfx::GpuPreference, gpu_preference) | 72 IPC_STRUCT_MEMBER(gfx::GpuPreference, gpu_preference) |
73 IPC_STRUCT_END() | 73 IPC_STRUCT_END() |
74 | 74 |
75 IPC_STRUCT_BEGIN(GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params) | 75 IPC_STRUCT_BEGIN(GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params) |
76 IPC_STRUCT_MEMBER(int32, surface_id) | 76 IPC_STRUCT_MEMBER(int32, surface_id) |
77 IPC_STRUCT_MEMBER(uint64, surface_handle) | 77 IPC_STRUCT_MEMBER(uint64, surface_handle) |
78 IPC_STRUCT_MEMBER(int32, route_id) | 78 IPC_STRUCT_MEMBER(int32, route_id) |
79 IPC_STRUCT_MEMBER(gpu::Mailbox, mailbox) | |
80 IPC_STRUCT_MEMBER(gfx::Size, size) | 79 IPC_STRUCT_MEMBER(gfx::Size, size) |
81 IPC_STRUCT_MEMBER(float, scale_factor) | 80 IPC_STRUCT_MEMBER(float, scale_factor) |
82 IPC_STRUCT_MEMBER(std::vector<ui::LatencyInfo>, latency_info) | 81 IPC_STRUCT_MEMBER(std::vector<ui::LatencyInfo>, latency_info) |
83 IPC_STRUCT_END() | 82 IPC_STRUCT_END() |
84 | 83 |
85 IPC_STRUCT_BEGIN(GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params) | |
86 IPC_STRUCT_MEMBER(int32, surface_id) | |
87 IPC_STRUCT_MEMBER(uint64, surface_handle) | |
88 IPC_STRUCT_MEMBER(int32, route_id) | |
89 IPC_STRUCT_MEMBER(int, x) | |
90 IPC_STRUCT_MEMBER(int, y) | |
91 IPC_STRUCT_MEMBER(int, width) | |
92 IPC_STRUCT_MEMBER(int, height) | |
93 IPC_STRUCT_MEMBER(gpu::Mailbox, mailbox) | |
94 IPC_STRUCT_MEMBER(gfx::Size, surface_size) | |
95 IPC_STRUCT_MEMBER(float, surface_scale_factor) | |
96 IPC_STRUCT_MEMBER(std::vector<ui::LatencyInfo>, latency_info) | |
97 IPC_STRUCT_END() | |
98 | |
99 IPC_STRUCT_BEGIN(GpuHostMsg_AcceleratedSurfaceRelease_Params) | |
100 IPC_STRUCT_MEMBER(int32, surface_id) | |
101 IPC_STRUCT_END() | |
102 | |
103 IPC_STRUCT_BEGIN(AcceleratedSurfaceMsg_BufferPresented_Params) | 84 IPC_STRUCT_BEGIN(AcceleratedSurfaceMsg_BufferPresented_Params) |
104 IPC_STRUCT_MEMBER(gpu::Mailbox, mailbox) | |
105 IPC_STRUCT_MEMBER(uint32, sync_point) | |
106 #if defined(OS_MACOSX) | |
107 IPC_STRUCT_MEMBER(int32, renderer_id) | 85 IPC_STRUCT_MEMBER(int32, renderer_id) |
108 #endif | |
109 #if defined(OS_WIN) | |
110 IPC_STRUCT_MEMBER(base::TimeTicks, vsync_timebase) | |
111 IPC_STRUCT_MEMBER(base::TimeDelta, vsync_interval) | |
112 #endif | |
113 IPC_STRUCT_END() | 86 IPC_STRUCT_END() |
114 | 87 |
115 IPC_STRUCT_BEGIN(GPUCommandBufferConsoleMessage) | 88 IPC_STRUCT_BEGIN(GPUCommandBufferConsoleMessage) |
116 IPC_STRUCT_MEMBER(int32, id) | 89 IPC_STRUCT_MEMBER(int32, id) |
117 IPC_STRUCT_MEMBER(std::string, message) | 90 IPC_STRUCT_MEMBER(std::string, message) |
118 IPC_STRUCT_END() | 91 IPC_STRUCT_END() |
119 | 92 |
120 #if defined(OS_ANDROID) | 93 #if defined(OS_ANDROID) |
121 IPC_STRUCT_BEGIN(GpuStreamTextureMsg_MatrixChanged_Params) | 94 IPC_STRUCT_BEGIN(GpuStreamTextureMsg_MatrixChanged_Params) |
122 IPC_STRUCT_MEMBER(float, m00) | 95 IPC_STRUCT_MEMBER(float, m00) |
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
399 | 372 |
400 // Tells the browser that a frame with the specific latency info was drawn to | 373 // Tells the browser that a frame with the specific latency info was drawn to |
401 // the screen | 374 // the screen |
402 IPC_MESSAGE_CONTROL1(GpuHostMsg_FrameDrawn, | 375 IPC_MESSAGE_CONTROL1(GpuHostMsg_FrameDrawn, |
403 std::vector<ui::LatencyInfo> /* latency_info */) | 376 std::vector<ui::LatencyInfo> /* latency_info */) |
404 | 377 |
405 // Same as above with a rect of the part of the surface that changed. | 378 // Same as above with a rect of the part of the surface that changed. |
406 IPC_MESSAGE_CONTROL1(GpuHostMsg_AcceleratedSurfaceBuffersSwapped, | 379 IPC_MESSAGE_CONTROL1(GpuHostMsg_AcceleratedSurfaceBuffersSwapped, |
407 GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params) | 380 GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params) |
408 | 381 |
409 // This message notifies the browser process that the renderer | |
410 // swapped a portion of the buffers associated with the given "window", which | |
411 // should cause the browser to redraw the compositor's contents. | |
412 IPC_MESSAGE_CONTROL1(GpuHostMsg_AcceleratedSurfacePostSubBuffer, | |
413 GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params) | |
414 | |
415 // Tells the browser to release whatever resources are associated with | |
416 // the given surface. The browser must send an ACK once this operation | |
417 // is complete. | |
418 IPC_MESSAGE_CONTROL1(GpuHostMsg_AcceleratedSurfaceRelease, | |
419 GpuHostMsg_AcceleratedSurfaceRelease_Params) | |
420 | |
421 // Tells the browser to release resources for the given surface until the next | |
422 // time swap buffers or post sub buffer is sent. | |
423 IPC_MESSAGE_CONTROL1(GpuHostMsg_AcceleratedSurfaceSuspend, | |
424 int32 /* surface_id */) | |
425 | |
426 // Tells the browser about updated parameters for vsync alignment. | 382 // Tells the browser about updated parameters for vsync alignment. |
427 IPC_MESSAGE_CONTROL3(GpuHostMsg_UpdateVSyncParameters, | 383 IPC_MESSAGE_CONTROL3(GpuHostMsg_UpdateVSyncParameters, |
428 int32 /* surface_id */, | 384 int32 /* surface_id */, |
429 base::TimeTicks /* timebase */, | 385 base::TimeTicks /* timebase */, |
430 base::TimeDelta /* interval */) | 386 base::TimeDelta /* interval */) |
431 | 387 |
432 IPC_MESSAGE_CONTROL1(GpuHostMsg_DidCreateOffscreenContext, | 388 IPC_MESSAGE_CONTROL1(GpuHostMsg_DidCreateOffscreenContext, |
433 GURL /* url */) | 389 GURL /* url */) |
434 | 390 |
435 IPC_MESSAGE_CONTROL3(GpuHostMsg_DidLoseContext, | 391 IPC_MESSAGE_CONTROL3(GpuHostMsg_DidLoseContext, |
(...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
768 int32 /* bitstream_buffer_id */, | 724 int32 /* bitstream_buffer_id */, |
769 uint32 /* payload_size */, | 725 uint32 /* payload_size */, |
770 bool /* key_frame */) | 726 bool /* key_frame */) |
771 | 727 |
772 // Report error condition. | 728 // Report error condition. |
773 IPC_MESSAGE_ROUTED1(AcceleratedVideoEncoderHostMsg_NotifyError, | 729 IPC_MESSAGE_ROUTED1(AcceleratedVideoEncoderHostMsg_NotifyError, |
774 media::VideoEncodeAccelerator::Error /* error */) | 730 media::VideoEncodeAccelerator::Error /* error */) |
775 | 731 |
776 // Send destroy request to the encoder. | 732 // Send destroy request to the encoder. |
777 IPC_MESSAGE_ROUTED0(AcceleratedVideoEncoderMsg_Destroy) | 733 IPC_MESSAGE_ROUTED0(AcceleratedVideoEncoderMsg_Destroy) |
OLD | NEW |