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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 | 124 |
125 #if defined(OS_ANDROID) | 125 #if defined(OS_ANDROID) |
126 //------------------------------------------------------------------------------ | 126 //------------------------------------------------------------------------------ |
127 // Stream Texture Messages | 127 // Stream Texture Messages |
128 // Tells the GPU process create and send the java surface texture object to | 128 // Tells the GPU process create and send the java surface texture object to |
129 // the renderer process through the binder thread. | 129 // the renderer process through the binder thread. |
130 IPC_MESSAGE_ROUTED2(GpuStreamTextureMsg_EstablishPeer, | 130 IPC_MESSAGE_ROUTED2(GpuStreamTextureMsg_EstablishPeer, |
131 int32_t, /* primary_id */ | 131 int32_t, /* primary_id */ |
132 int32_t /* secondary_id */) | 132 int32_t /* secondary_id */) |
133 | 133 |
| 134 // Tells the StreamTexture to send its SurfaceTexture to the browser process, |
| 135 // via the ScopedSurfaceRequestConduit. |
| 136 IPC_MESSAGE_ROUTED1(GpuStreamTextureMsg_ForwardForSurfaceRequest, uint64_t) |
| 137 |
134 // Tells the GPU process to set the size of StreamTexture from the given | 138 // Tells the GPU process to set the size of StreamTexture from the given |
135 // stream Id. | 139 // stream Id. |
136 IPC_MESSAGE_ROUTED1(GpuStreamTextureMsg_SetSize, gfx::Size /* size */) | 140 IPC_MESSAGE_ROUTED1(GpuStreamTextureMsg_SetSize, gfx::Size /* size */) |
137 | 141 |
138 // Tells the service-side instance to start sending frame available | 142 // Tells the service-side instance to start sending frame available |
139 // notifications. | 143 // notifications. |
140 IPC_MESSAGE_ROUTED0(GpuStreamTextureMsg_StartListening) | 144 IPC_MESSAGE_ROUTED0(GpuStreamTextureMsg_StartListening) |
141 | 145 |
142 // Inform the renderer that a new frame is available. | 146 // Inform the renderer that a new frame is available. |
143 IPC_MESSAGE_ROUTED0(GpuStreamTextureMsg_FrameAvailable) | 147 IPC_MESSAGE_ROUTED0(GpuStreamTextureMsg_FrameAvailable) |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
240 GpuCommandBufferMsg_CreateImage_Params /* params */) | 244 GpuCommandBufferMsg_CreateImage_Params /* params */) |
241 | 245 |
242 // Destroy a previously created image. | 246 // Destroy a previously created image. |
243 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_DestroyImage, int32_t /* id */) | 247 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_DestroyImage, int32_t /* id */) |
244 | 248 |
245 // Attaches an external image stream to the client texture. | 249 // Attaches an external image stream to the client texture. |
246 IPC_SYNC_MESSAGE_ROUTED2_1(GpuCommandBufferMsg_CreateStreamTexture, | 250 IPC_SYNC_MESSAGE_ROUTED2_1(GpuCommandBufferMsg_CreateStreamTexture, |
247 uint32_t, /* client_texture_id */ | 251 uint32_t, /* client_texture_id */ |
248 int32_t, /* stream_id */ | 252 int32_t, /* stream_id */ |
249 bool /* succeeded */) | 253 bool /* succeeded */) |
OLD | NEW |