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 <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 | 65 |
66 IPC_STRUCT_BEGIN(GpuCommandBufferMsg_CreateImage_Params) | 66 IPC_STRUCT_BEGIN(GpuCommandBufferMsg_CreateImage_Params) |
67 IPC_STRUCT_MEMBER(int32_t, id) | 67 IPC_STRUCT_MEMBER(int32_t, id) |
68 IPC_STRUCT_MEMBER(gfx::GpuMemoryBufferHandle, gpu_memory_buffer) | 68 IPC_STRUCT_MEMBER(gfx::GpuMemoryBufferHandle, gpu_memory_buffer) |
69 IPC_STRUCT_MEMBER(gfx::Size, size) | 69 IPC_STRUCT_MEMBER(gfx::Size, size) |
70 IPC_STRUCT_MEMBER(gfx::BufferFormat, format) | 70 IPC_STRUCT_MEMBER(gfx::BufferFormat, format) |
71 IPC_STRUCT_MEMBER(uint32_t, internal_format) | 71 IPC_STRUCT_MEMBER(uint32_t, internal_format) |
72 IPC_STRUCT_MEMBER(uint64_t, image_release_count) | 72 IPC_STRUCT_MEMBER(uint64_t, image_release_count) |
73 IPC_STRUCT_END() | 73 IPC_STRUCT_END() |
74 | 74 |
| 75 IPC_STRUCT_BEGIN(GpuCommandBufferMsg_CreateFence_Params) |
| 76 IPC_STRUCT_MEMBER(int32_t, id) |
| 77 IPC_STRUCT_MEMBER(gfx::GpuFenceHandle, gpu_fence) |
| 78 IPC_STRUCT_END() |
| 79 |
75 IPC_STRUCT_BEGIN(GpuCommandBufferMsg_SwapBuffersCompleted_Params) | 80 IPC_STRUCT_BEGIN(GpuCommandBufferMsg_SwapBuffersCompleted_Params) |
76 #if defined(OS_MACOSX) | 81 #if defined(OS_MACOSX) |
77 // Mac-specific parameters used to present CALayers hosted in the GPU process. | 82 // Mac-specific parameters used to present CALayers hosted in the GPU process. |
78 // TODO(ccameron): Remove these parameters once the CALayer tree is hosted in | 83 // TODO(ccameron): Remove these parameters once the CALayer tree is hosted in |
79 // the browser process. | 84 // the browser process. |
80 // https://crbug.com/604052 | 85 // https://crbug.com/604052 |
81 // Only one of ca_context_id or io_surface may be non-0. | 86 // Only one of ca_context_id or io_surface may be non-0. |
82 IPC_STRUCT_MEMBER(CAContextID, ca_context_id) | 87 IPC_STRUCT_MEMBER(CAContextID, ca_context_id) |
83 IPC_STRUCT_MEMBER(bool, fullscreen_low_power_ca_context_valid) | 88 IPC_STRUCT_MEMBER(bool, fullscreen_low_power_ca_context_valid) |
84 IPC_STRUCT_MEMBER(CAContextID, fullscreen_low_power_ca_context_id) | 89 IPC_STRUCT_MEMBER(CAContextID, fullscreen_low_power_ca_context_id) |
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
245 GpuCommandBufferMsg_CreateImage_Params /* params */) | 250 GpuCommandBufferMsg_CreateImage_Params /* params */) |
246 | 251 |
247 // Destroy a previously created image. | 252 // Destroy a previously created image. |
248 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_DestroyImage, int32_t /* id */) | 253 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_DestroyImage, int32_t /* id */) |
249 | 254 |
250 // Attaches an external image stream to the client texture. | 255 // Attaches an external image stream to the client texture. |
251 IPC_SYNC_MESSAGE_ROUTED2_1(GpuCommandBufferMsg_CreateStreamTexture, | 256 IPC_SYNC_MESSAGE_ROUTED2_1(GpuCommandBufferMsg_CreateStreamTexture, |
252 uint32_t, /* client_texture_id */ | 257 uint32_t, /* client_texture_id */ |
253 int32_t, /* stream_id */ | 258 int32_t, /* stream_id */ |
254 bool /* succeeded */) | 259 bool /* succeeded */) |
| 260 |
| 261 // Create a fence from an existing gpu fence. The id that can be |
| 262 // used to identify the fence from a command buffer. |
| 263 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_CreateFence, |
| 264 GpuCommandBufferMsg_CreateFence_Params /* params */) |
| 265 |
| 266 // Destroy a previously created fence. |
| 267 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_DestroyFence, int32_t /* id */) |
OLD | NEW |