| 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 | 63 |
| 64 IPC_STRUCT_BEGIN(GpuCommandBufferMsg_CreateImage_Params) | 64 IPC_STRUCT_BEGIN(GpuCommandBufferMsg_CreateImage_Params) |
| 65 IPC_STRUCT_MEMBER(int32_t, id) | 65 IPC_STRUCT_MEMBER(int32_t, id) |
| 66 IPC_STRUCT_MEMBER(gfx::GpuMemoryBufferHandle, gpu_memory_buffer) | 66 IPC_STRUCT_MEMBER(gfx::GpuMemoryBufferHandle, gpu_memory_buffer) |
| 67 IPC_STRUCT_MEMBER(gfx::Size, size) | 67 IPC_STRUCT_MEMBER(gfx::Size, size) |
| 68 IPC_STRUCT_MEMBER(gfx::BufferFormat, format) | 68 IPC_STRUCT_MEMBER(gfx::BufferFormat, format) |
| 69 IPC_STRUCT_MEMBER(uint32_t, internal_format) | 69 IPC_STRUCT_MEMBER(uint32_t, internal_format) |
| 70 IPC_STRUCT_MEMBER(uint64_t, image_release_count) | 70 IPC_STRUCT_MEMBER(uint64_t, image_release_count) |
| 71 IPC_STRUCT_END() | 71 IPC_STRUCT_END() |
| 72 | 72 |
| 73 #if defined(OS_ANDROID) | |
| 74 IPC_STRUCT_BEGIN(GpuStreamTextureMsg_MatrixChanged_Params) | |
| 75 IPC_STRUCT_MEMBER(float, m00) | |
| 76 IPC_STRUCT_MEMBER(float, m01) | |
| 77 IPC_STRUCT_MEMBER(float, m02) | |
| 78 IPC_STRUCT_MEMBER(float, m03) | |
| 79 IPC_STRUCT_MEMBER(float, m10) | |
| 80 IPC_STRUCT_MEMBER(float, m11) | |
| 81 IPC_STRUCT_MEMBER(float, m12) | |
| 82 IPC_STRUCT_MEMBER(float, m13) | |
| 83 IPC_STRUCT_MEMBER(float, m20) | |
| 84 IPC_STRUCT_MEMBER(float, m21) | |
| 85 IPC_STRUCT_MEMBER(float, m22) | |
| 86 IPC_STRUCT_MEMBER(float, m23) | |
| 87 IPC_STRUCT_MEMBER(float, m30) | |
| 88 IPC_STRUCT_MEMBER(float, m31) | |
| 89 IPC_STRUCT_MEMBER(float, m32) | |
| 90 IPC_STRUCT_MEMBER(float, m33) | |
| 91 IPC_STRUCT_END() | |
| 92 #endif | |
| 93 | |
| 94 //------------------------------------------------------------------------------ | 73 //------------------------------------------------------------------------------ |
| 95 // GPU Channel Messages | 74 // GPU Channel Messages |
| 96 // These are messages from a renderer process to the GPU process. | 75 // These are messages from a renderer process to the GPU process. |
| 97 | 76 |
| 98 // Tells the GPU process to create a new command buffer. A corresponding | 77 // Tells the GPU process to create a new command buffer. A corresponding |
| 99 // GpuCommandBufferStub is created. if |surface_handle| is non-null, |size| is | 78 // GpuCommandBufferStub is created. if |surface_handle| is non-null, |size| is |
| 100 // ignored, and it will render directly to the native surface (only the browser | 79 // ignored, and it will render directly to the native surface (only the browser |
| 101 // process is allowed to create those). Otherwise it will create an offscreen | 80 // process is allowed to create those). Otherwise it will create an offscreen |
| 102 // backbuffer of dimensions |size|. | 81 // backbuffer of dimensions |size|. |
| 103 IPC_SYNC_MESSAGE_CONTROL4_1(GpuChannelMsg_CreateCommandBuffer, | 82 IPC_SYNC_MESSAGE_CONTROL4_1(GpuChannelMsg_CreateCommandBuffer, |
| (...skipping 30 matching lines...) Expand all Loading... |
| 134 // Tells the GPU process to set the size of StreamTexture from the given | 113 // Tells the GPU process to set the size of StreamTexture from the given |
| 135 // stream Id. | 114 // stream Id. |
| 136 IPC_MESSAGE_ROUTED1(GpuStreamTextureMsg_SetSize, gfx::Size /* size */) | 115 IPC_MESSAGE_ROUTED1(GpuStreamTextureMsg_SetSize, gfx::Size /* size */) |
| 137 | 116 |
| 138 // Tells the service-side instance to start sending frame available | 117 // Tells the service-side instance to start sending frame available |
| 139 // notifications. | 118 // notifications. |
| 140 IPC_MESSAGE_ROUTED0(GpuStreamTextureMsg_StartListening) | 119 IPC_MESSAGE_ROUTED0(GpuStreamTextureMsg_StartListening) |
| 141 | 120 |
| 142 // Inform the renderer that a new frame is available. | 121 // Inform the renderer that a new frame is available. |
| 143 IPC_MESSAGE_ROUTED0(GpuStreamTextureMsg_FrameAvailable) | 122 IPC_MESSAGE_ROUTED0(GpuStreamTextureMsg_FrameAvailable) |
| 144 | |
| 145 // Inform the renderer process that the transform matrix has changed. | |
| 146 IPC_MESSAGE_ROUTED1(GpuStreamTextureMsg_MatrixChanged, | |
| 147 GpuStreamTextureMsg_MatrixChanged_Params /* params */) | |
| 148 #endif | 123 #endif |
| 149 | 124 |
| 150 //------------------------------------------------------------------------------ | 125 //------------------------------------------------------------------------------ |
| 151 // GPU Command Buffer Messages | 126 // GPU Command Buffer Messages |
| 152 // These are messages between a renderer process to the GPU process relating to | 127 // These are messages between a renderer process to the GPU process relating to |
| 153 // a single OpenGL context. | 128 // a single OpenGL context. |
| 154 // Initialize a command buffer with the given number of command entries. | 129 // Initialize a command buffer with the given number of command entries. |
| 155 // Returns the shared memory handle for the command buffer mapped to the | 130 // Returns the shared memory handle for the command buffer mapped to the |
| 156 // calling process. | 131 // calling process. |
| 157 IPC_SYNC_MESSAGE_ROUTED1_2(GpuCommandBufferMsg_Initialize, | 132 IPC_SYNC_MESSAGE_ROUTED1_2(GpuCommandBufferMsg_Initialize, |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 239 GpuCommandBufferMsg_CreateImage_Params /* params */) | 214 GpuCommandBufferMsg_CreateImage_Params /* params */) |
| 240 | 215 |
| 241 // Destroy a previously created image. | 216 // Destroy a previously created image. |
| 242 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_DestroyImage, int32_t /* id */) | 217 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_DestroyImage, int32_t /* id */) |
| 243 | 218 |
| 244 // Attaches an external image stream to the client texture. | 219 // Attaches an external image stream to the client texture. |
| 245 IPC_SYNC_MESSAGE_ROUTED2_1(GpuCommandBufferMsg_CreateStreamTexture, | 220 IPC_SYNC_MESSAGE_ROUTED2_1(GpuCommandBufferMsg_CreateStreamTexture, |
| 246 uint32_t, /* client_texture_id */ | 221 uint32_t, /* client_texture_id */ |
| 247 int32_t, /* stream_id */ | 222 int32_t, /* stream_id */ |
| 248 bool /* succeeded */) | 223 bool /* succeeded */) |
| OLD | NEW |