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

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

Issue 1746983002: Make Android StreamTexture implement GLStreamTextureImage (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Call UpdateTexImage before fetching the surface texture matrix Created 4 years, 9 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>
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 IPC_STRUCT_MEMBER(std::vector<int>, attribs) 73 IPC_STRUCT_MEMBER(std::vector<int>, attribs)
74 IPC_STRUCT_MEMBER(GURL, active_url) 74 IPC_STRUCT_MEMBER(GURL, active_url)
75 IPC_STRUCT_MEMBER(gfx::GpuPreference, gpu_preference) 75 IPC_STRUCT_MEMBER(gfx::GpuPreference, gpu_preference)
76 IPC_STRUCT_END() 76 IPC_STRUCT_END()
77 77
78 IPC_STRUCT_BEGIN(GPUCommandBufferConsoleMessage) 78 IPC_STRUCT_BEGIN(GPUCommandBufferConsoleMessage)
79 IPC_STRUCT_MEMBER(int32_t, id) 79 IPC_STRUCT_MEMBER(int32_t, id)
80 IPC_STRUCT_MEMBER(std::string, message) 80 IPC_STRUCT_MEMBER(std::string, message)
81 IPC_STRUCT_END() 81 IPC_STRUCT_END()
82 82
83 #if defined(OS_ANDROID)
84 IPC_STRUCT_BEGIN(GpuStreamTextureMsg_MatrixChanged_Params)
85 IPC_STRUCT_MEMBER(float, m00)
86 IPC_STRUCT_MEMBER(float, m01)
87 IPC_STRUCT_MEMBER(float, m02)
88 IPC_STRUCT_MEMBER(float, m03)
89 IPC_STRUCT_MEMBER(float, m10)
90 IPC_STRUCT_MEMBER(float, m11)
91 IPC_STRUCT_MEMBER(float, m12)
92 IPC_STRUCT_MEMBER(float, m13)
93 IPC_STRUCT_MEMBER(float, m20)
94 IPC_STRUCT_MEMBER(float, m21)
95 IPC_STRUCT_MEMBER(float, m22)
96 IPC_STRUCT_MEMBER(float, m23)
97 IPC_STRUCT_MEMBER(float, m30)
98 IPC_STRUCT_MEMBER(float, m31)
99 IPC_STRUCT_MEMBER(float, m32)
100 IPC_STRUCT_MEMBER(float, m33)
101 IPC_STRUCT_END()
102 #endif
103
104 IPC_STRUCT_BEGIN(GpuCommandBufferMsg_CreateImage_Params) 83 IPC_STRUCT_BEGIN(GpuCommandBufferMsg_CreateImage_Params)
105 IPC_STRUCT_MEMBER(int32_t, id) 84 IPC_STRUCT_MEMBER(int32_t, id)
106 IPC_STRUCT_MEMBER(gfx::GpuMemoryBufferHandle, gpu_memory_buffer) 85 IPC_STRUCT_MEMBER(gfx::GpuMemoryBufferHandle, gpu_memory_buffer)
107 IPC_STRUCT_MEMBER(gfx::Size, size) 86 IPC_STRUCT_MEMBER(gfx::Size, size)
108 IPC_STRUCT_MEMBER(gfx::BufferFormat, format) 87 IPC_STRUCT_MEMBER(gfx::BufferFormat, format)
109 IPC_STRUCT_MEMBER(uint32_t, internal_format) 88 IPC_STRUCT_MEMBER(uint32_t, internal_format)
110 IPC_STRUCT_MEMBER(uint64_t, image_release_count) 89 IPC_STRUCT_MEMBER(uint64_t, image_release_count)
111 IPC_STRUCT_END() 90 IPC_STRUCT_END()
112 91
113 IPC_STRUCT_TRAITS_BEGIN(gpu::DxDiagNode) 92 IPC_STRUCT_TRAITS_BEGIN(gpu::DxDiagNode)
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 // stream Id. 187 // stream Id.
209 IPC_MESSAGE_ROUTED1(GpuStreamTextureMsg_SetSize, 188 IPC_MESSAGE_ROUTED1(GpuStreamTextureMsg_SetSize,
210 gfx::Size /* size */) 189 gfx::Size /* size */)
211 190
212 // Tells the service-side instance to start sending frame available 191 // Tells the service-side instance to start sending frame available
213 // notifications. 192 // notifications.
214 IPC_MESSAGE_ROUTED0(GpuStreamTextureMsg_StartListening) 193 IPC_MESSAGE_ROUTED0(GpuStreamTextureMsg_StartListening)
215 194
216 // Inform the renderer that a new frame is available. 195 // Inform the renderer that a new frame is available.
217 IPC_MESSAGE_ROUTED0(GpuStreamTextureMsg_FrameAvailable) 196 IPC_MESSAGE_ROUTED0(GpuStreamTextureMsg_FrameAvailable)
218
219 // Inform the renderer process that the transform matrix has changed.
220 IPC_MESSAGE_ROUTED1(GpuStreamTextureMsg_MatrixChanged,
221 GpuStreamTextureMsg_MatrixChanged_Params /* params */)
222 #endif 197 #endif
223 198
224 //------------------------------------------------------------------------------ 199 //------------------------------------------------------------------------------
225 // GPU Command Buffer Messages 200 // GPU Command Buffer Messages
226 // These are messages between a renderer process to the GPU process relating to 201 // These are messages between a renderer process to the GPU process relating to
227 // a single OpenGL context. 202 // a single OpenGL context.
228 // Initialize a command buffer with the given number of command entries. 203 // Initialize a command buffer with the given number of command entries.
229 // Returns the shared memory handle for the command buffer mapped to the 204 // Returns the shared memory handle for the command buffer mapped to the
230 // calling process. 205 // calling process.
231 IPC_SYNC_MESSAGE_ROUTED1_2(GpuCommandBufferMsg_Initialize, 206 IPC_SYNC_MESSAGE_ROUTED1_2(GpuCommandBufferMsg_Initialize,
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
313 GpuCommandBufferMsg_CreateImage_Params /* params */) 288 GpuCommandBufferMsg_CreateImage_Params /* params */)
314 289
315 // Destroy a previously created image. 290 // Destroy a previously created image.
316 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_DestroyImage, int32_t /* id */) 291 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_DestroyImage, int32_t /* id */)
317 292
318 // Attaches an external image stream to the client texture. 293 // Attaches an external image stream to the client texture.
319 IPC_SYNC_MESSAGE_ROUTED2_1(GpuCommandBufferMsg_CreateStreamTexture, 294 IPC_SYNC_MESSAGE_ROUTED2_1(GpuCommandBufferMsg_CreateStreamTexture,
320 uint32_t, /* client_texture_id */ 295 uint32_t, /* client_texture_id */
321 int32_t, /* stream_id */ 296 int32_t, /* stream_id */
322 bool /* succeeded */) 297 bool /* succeeded */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698