Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(102)

Side by Side Diff: gpu/ipc/common/gpu_messages.h

Issue 2282633002: Integrate Surface requests with MediaPlayerRenderer (Closed)
Patch Set: Fixed merge error Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 125
125 #if defined(OS_ANDROID) 126 #if defined(OS_ANDROID)
126 //------------------------------------------------------------------------------ 127 //------------------------------------------------------------------------------
127 // Stream Texture Messages 128 // Stream Texture Messages
128 // Tells the GPU process create and send the java surface texture object to 129 // Tells the GPU process create and send the java surface texture object to
129 // the renderer process through the binder thread. 130 // the renderer process through the binder thread.
130 IPC_MESSAGE_ROUTED2(GpuStreamTextureMsg_EstablishPeer, 131 IPC_MESSAGE_ROUTED2(GpuStreamTextureMsg_EstablishPeer,
131 int32_t, /* primary_id */ 132 int32_t, /* primary_id */
132 int32_t /* secondary_id */) 133 int32_t /* secondary_id */)
133 134
135 // Tells the StreamTexture to send its SurfaceTexture to the browser process,
136 // via the ScopedSurfaceRequestConduit.
137 IPC_MESSAGE_ROUTED1(GpuStreamTextureMsg_ForwardForSurfaceRequest,
138 base::UnguessableToken)
139
134 // Tells the GPU process to set the size of StreamTexture from the given 140 // Tells the GPU process to set the size of StreamTexture from the given
135 // stream Id. 141 // stream Id.
136 IPC_MESSAGE_ROUTED1(GpuStreamTextureMsg_SetSize, gfx::Size /* size */) 142 IPC_MESSAGE_ROUTED1(GpuStreamTextureMsg_SetSize, gfx::Size /* size */)
137 143
138 // Tells the service-side instance to start sending frame available 144 // Tells the service-side instance to start sending frame available
139 // notifications. 145 // notifications.
140 IPC_MESSAGE_ROUTED0(GpuStreamTextureMsg_StartListening) 146 IPC_MESSAGE_ROUTED0(GpuStreamTextureMsg_StartListening)
141 147
142 // Inform the renderer that a new frame is available. 148 // Inform the renderer that a new frame is available.
143 IPC_MESSAGE_ROUTED0(GpuStreamTextureMsg_FrameAvailable) 149 IPC_MESSAGE_ROUTED0(GpuStreamTextureMsg_FrameAvailable)
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 GpuCommandBufferMsg_CreateImage_Params /* params */) 246 GpuCommandBufferMsg_CreateImage_Params /* params */)
241 247
242 // Destroy a previously created image. 248 // Destroy a previously created image.
243 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_DestroyImage, int32_t /* id */) 249 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_DestroyImage, int32_t /* id */)
244 250
245 // Attaches an external image stream to the client texture. 251 // Attaches an external image stream to the client texture.
246 IPC_SYNC_MESSAGE_ROUTED2_1(GpuCommandBufferMsg_CreateStreamTexture, 252 IPC_SYNC_MESSAGE_ROUTED2_1(GpuCommandBufferMsg_CreateStreamTexture,
247 uint32_t, /* client_texture_id */ 253 uint32_t, /* client_texture_id */
248 int32_t, /* stream_id */ 254 int32_t, /* stream_id */
249 bool /* succeeded */) 255 bool /* succeeded */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698