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 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
215 IPC_STRUCT_TRAITS_MEMBER(bytes_allocated_current) | 215 IPC_STRUCT_TRAITS_MEMBER(bytes_allocated_current) |
216 IPC_STRUCT_TRAITS_MEMBER(bytes_allocated_max) | 216 IPC_STRUCT_TRAITS_MEMBER(bytes_allocated_max) |
217 IPC_STRUCT_TRAITS_MEMBER(bytes_limit) | 217 IPC_STRUCT_TRAITS_MEMBER(bytes_limit) |
218 IPC_STRUCT_TRAITS_END() | 218 IPC_STRUCT_TRAITS_END() |
219 | 219 |
220 IPC_STRUCT_TRAITS_BEGIN(gpu::MemoryAllocation) | 220 IPC_STRUCT_TRAITS_BEGIN(gpu::MemoryAllocation) |
221 IPC_STRUCT_TRAITS_MEMBER(bytes_limit_when_visible) | 221 IPC_STRUCT_TRAITS_MEMBER(bytes_limit_when_visible) |
222 IPC_STRUCT_TRAITS_MEMBER(priority_cutoff_when_visible) | 222 IPC_STRUCT_TRAITS_MEMBER(priority_cutoff_when_visible) |
223 IPC_STRUCT_TRAITS_END() | 223 IPC_STRUCT_TRAITS_END() |
224 | 224 |
225 IPC_STRUCT_TRAITS_BEGIN(gpu::ManagedMemoryStats) | |
226 IPC_STRUCT_TRAITS_MEMBER(bytes_required) | |
227 IPC_STRUCT_TRAITS_MEMBER(bytes_nice_to_have) | |
228 IPC_STRUCT_TRAITS_MEMBER(bytes_allocated) | |
229 IPC_STRUCT_TRAITS_MEMBER(backbuffer_requested) | |
230 IPC_STRUCT_TRAITS_END() | |
231 | |
232 IPC_STRUCT_TRAITS_BEGIN(gfx::GLSurfaceHandle) | 225 IPC_STRUCT_TRAITS_BEGIN(gfx::GLSurfaceHandle) |
233 IPC_STRUCT_TRAITS_MEMBER(handle) | 226 IPC_STRUCT_TRAITS_MEMBER(handle) |
234 IPC_STRUCT_TRAITS_MEMBER(transport_type) | 227 IPC_STRUCT_TRAITS_MEMBER(transport_type) |
235 IPC_STRUCT_TRAITS_MEMBER(parent_client_id) | 228 IPC_STRUCT_TRAITS_MEMBER(parent_client_id) |
236 IPC_STRUCT_TRAITS_END() | 229 IPC_STRUCT_TRAITS_END() |
237 | 230 |
238 //------------------------------------------------------------------------------ | 231 //------------------------------------------------------------------------------ |
239 // GPU Messages | 232 // GPU Messages |
240 // These are messages from the browser to the GPU process. | 233 // These are messages from the browser to the GPU process. |
241 | 234 |
(...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
601 // Response to a GpuChannelMsg_Echo message. | 594 // Response to a GpuChannelMsg_Echo message. |
602 IPC_MESSAGE_ROUTED0(GpuCommandBufferMsg_EchoAck) | 595 IPC_MESSAGE_ROUTED0(GpuCommandBufferMsg_EchoAck) |
603 | 596 |
604 // Send to stub on surface visibility change. | 597 // Send to stub on surface visibility change. |
605 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_SetSurfaceVisible, bool /* visible */) | 598 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_SetSurfaceVisible, bool /* visible */) |
606 | 599 |
607 // Sent to proxy when the gpu memory manager changes its memory allocation. | 600 // Sent to proxy when the gpu memory manager changes its memory allocation. |
608 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_SetMemoryAllocation, | 601 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_SetMemoryAllocation, |
609 gpu::MemoryAllocation /* allocation */) | 602 gpu::MemoryAllocation /* allocation */) |
610 | 603 |
611 // Sent to stub from the proxy with statistics on managed memory usage and | |
612 // requirements. | |
613 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_SendClientManagedMemoryStats, | |
614 gpu::ManagedMemoryStats /* stats */) | |
615 | |
616 // Sent to stub when proxy is assigned a memory allocation changed callback. | 604 // Sent to stub when proxy is assigned a memory allocation changed callback. |
617 IPC_MESSAGE_ROUTED1( | 605 IPC_MESSAGE_ROUTED1( |
618 GpuCommandBufferMsg_SetClientHasMemoryAllocationChangedCallback, | 606 GpuCommandBufferMsg_SetClientHasMemoryAllocationChangedCallback, |
619 bool /* has_callback */) | 607 bool /* has_callback */) |
620 | 608 |
621 // Inserts a sync point into the channel. This is handled on the IO thread, so | 609 // Inserts a sync point into the channel. This is handled on the IO thread, so |
622 // can be expected to be reasonably fast, but the sync point is actually | 610 // can be expected to be reasonably fast, but the sync point is actually |
623 // retired in order with respect to the other calls. The sync point is shared | 611 // retired in order with respect to the other calls. The sync point is shared |
624 // across channels. | 612 // across channels. |
625 IPC_SYNC_MESSAGE_ROUTED0_1(GpuCommandBufferMsg_InsertSyncPoint, | 613 IPC_SYNC_MESSAGE_ROUTED0_1(GpuCommandBufferMsg_InsertSyncPoint, |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
780 int32 /* bitstream_buffer_id */, | 768 int32 /* bitstream_buffer_id */, |
781 uint32 /* payload_size */, | 769 uint32 /* payload_size */, |
782 bool /* key_frame */) | 770 bool /* key_frame */) |
783 | 771 |
784 // Report error condition. | 772 // Report error condition. |
785 IPC_MESSAGE_ROUTED1(AcceleratedVideoEncoderHostMsg_NotifyError, | 773 IPC_MESSAGE_ROUTED1(AcceleratedVideoEncoderHostMsg_NotifyError, |
786 media::VideoEncodeAccelerator::Error /* error */) | 774 media::VideoEncodeAccelerator::Error /* error */) |
787 | 775 |
788 // Send destroy request to the encoder. | 776 // Send destroy request to the encoder. |
789 IPC_MESSAGE_ROUTED0(AcceleratedVideoEncoderMsg_Destroy) | 777 IPC_MESSAGE_ROUTED0(AcceleratedVideoEncoderMsg_Destroy) |
OLD | NEW |