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> |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
13 #include "base/memory/shared_memory.h" | 13 #include "base/memory/shared_memory.h" |
| 14 #include "base/unguessable_token.h" |
14 #include "build/build_config.h" | 15 #include "build/build_config.h" |
15 #include "gpu/command_buffer/common/capabilities.h" | 16 #include "gpu/command_buffer/common/capabilities.h" |
16 #include "gpu/command_buffer/common/command_buffer.h" | 17 #include "gpu/command_buffer/common/command_buffer.h" |
17 #include "gpu/command_buffer/common/constants.h" | 18 #include "gpu/command_buffer/common/constants.h" |
18 #include "gpu/command_buffer/common/gpu_memory_allocation.h" | 19 #include "gpu/command_buffer/common/gpu_memory_allocation.h" |
19 #include "gpu/command_buffer/common/mailbox.h" | 20 #include "gpu/command_buffer/common/mailbox.h" |
20 #include "gpu/command_buffer/common/sync_token.h" | 21 #include "gpu/command_buffer/common/sync_token.h" |
21 #include "gpu/command_buffer/common/texture_in_use_response.h" | 22 #include "gpu/command_buffer/common/texture_in_use_response.h" |
22 #include "gpu/config/gpu_info.h" | 23 #include "gpu/config/gpu_info.h" |
23 #include "gpu/gpu_export.h" | 24 #include "gpu/gpu_export.h" |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 | 124 |
124 #if defined(OS_ANDROID) | 125 #if defined(OS_ANDROID) |
125 //------------------------------------------------------------------------------ | 126 //------------------------------------------------------------------------------ |
126 // Stream Texture Messages | 127 // Stream Texture Messages |
127 // 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 |
128 // the renderer process through the binder thread. | 129 // the renderer process through the binder thread. |
129 IPC_MESSAGE_ROUTED2(GpuStreamTextureMsg_EstablishPeer, | 130 IPC_MESSAGE_ROUTED2(GpuStreamTextureMsg_EstablishPeer, |
130 int32_t, /* primary_id */ | 131 int32_t, /* primary_id */ |
131 int32_t /* secondary_id */) | 132 int32_t /* secondary_id */) |
132 | 133 |
| 134 // Tells the StreamTexture to send its SurfaceTexture to the browser process, |
| 135 // via the ScopedSurfaceRequestConduit. |
| 136 IPC_MESSAGE_ROUTED1(GpuStreamTextureMsg_ForwardForSurfaceRequest, |
| 137 base::UnguessableToken) |
| 138 |
133 // Tells the GPU process to set the size of StreamTexture from the given | 139 // Tells the GPU process to set the size of StreamTexture from the given |
134 // stream Id. | 140 // stream Id. |
135 IPC_MESSAGE_ROUTED1(GpuStreamTextureMsg_SetSize, gfx::Size /* size */) | 141 IPC_MESSAGE_ROUTED1(GpuStreamTextureMsg_SetSize, gfx::Size /* size */) |
136 | 142 |
137 // Tells the service-side instance to start sending frame available | 143 // Tells the service-side instance to start sending frame available |
138 // notifications. | 144 // notifications. |
139 IPC_MESSAGE_ROUTED0(GpuStreamTextureMsg_StartListening) | 145 IPC_MESSAGE_ROUTED0(GpuStreamTextureMsg_StartListening) |
140 | 146 |
141 // Inform the renderer that a new frame is available. | 147 // Inform the renderer that a new frame is available. |
142 IPC_MESSAGE_ROUTED0(GpuStreamTextureMsg_FrameAvailable) | 148 IPC_MESSAGE_ROUTED0(GpuStreamTextureMsg_FrameAvailable) |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
239 GpuCommandBufferMsg_CreateImage_Params /* params */) | 245 GpuCommandBufferMsg_CreateImage_Params /* params */) |
240 | 246 |
241 // Destroy a previously created image. | 247 // Destroy a previously created image. |
242 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_DestroyImage, int32_t /* id */) | 248 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_DestroyImage, int32_t /* id */) |
243 | 249 |
244 // Attaches an external image stream to the client texture. | 250 // Attaches an external image stream to the client texture. |
245 IPC_SYNC_MESSAGE_ROUTED2_1(GpuCommandBufferMsg_CreateStreamTexture, | 251 IPC_SYNC_MESSAGE_ROUTED2_1(GpuCommandBufferMsg_CreateStreamTexture, |
246 uint32_t, /* client_texture_id */ | 252 uint32_t, /* client_texture_id */ |
247 int32_t, /* stream_id */ | 253 int32_t, /* stream_id */ |
248 bool /* succeeded */) | 254 bool /* succeeded */) |
OLD | NEW |