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

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: Remove resolved TODO 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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 IPC_STRUCT_MEMBER(std::vector<int>, attribs) 75 IPC_STRUCT_MEMBER(std::vector<int>, attribs)
76 IPC_STRUCT_MEMBER(GURL, active_url) 76 IPC_STRUCT_MEMBER(GURL, active_url)
77 IPC_STRUCT_MEMBER(gfx::GpuPreference, gpu_preference) 77 IPC_STRUCT_MEMBER(gfx::GpuPreference, gpu_preference)
78 IPC_STRUCT_END() 78 IPC_STRUCT_END()
79 79
80 IPC_STRUCT_BEGIN(GPUCommandBufferConsoleMessage) 80 IPC_STRUCT_BEGIN(GPUCommandBufferConsoleMessage)
81 IPC_STRUCT_MEMBER(int32_t, id) 81 IPC_STRUCT_MEMBER(int32_t, id)
82 IPC_STRUCT_MEMBER(std::string, message) 82 IPC_STRUCT_MEMBER(std::string, message)
83 IPC_STRUCT_END() 83 IPC_STRUCT_END()
84 84
85 #if defined(OS_ANDROID)
86 IPC_STRUCT_BEGIN(GpuStreamTextureMsg_MatrixChanged_Params)
87 IPC_STRUCT_MEMBER(float, m00)
88 IPC_STRUCT_MEMBER(float, m01)
89 IPC_STRUCT_MEMBER(float, m02)
90 IPC_STRUCT_MEMBER(float, m03)
91 IPC_STRUCT_MEMBER(float, m10)
92 IPC_STRUCT_MEMBER(float, m11)
93 IPC_STRUCT_MEMBER(float, m12)
94 IPC_STRUCT_MEMBER(float, m13)
95 IPC_STRUCT_MEMBER(float, m20)
96 IPC_STRUCT_MEMBER(float, m21)
97 IPC_STRUCT_MEMBER(float, m22)
98 IPC_STRUCT_MEMBER(float, m23)
99 IPC_STRUCT_MEMBER(float, m30)
100 IPC_STRUCT_MEMBER(float, m31)
101 IPC_STRUCT_MEMBER(float, m32)
102 IPC_STRUCT_MEMBER(float, m33)
103 IPC_STRUCT_END()
104 #endif
105
106 IPC_STRUCT_BEGIN(GpuCommandBufferMsg_CreateImage_Params) 85 IPC_STRUCT_BEGIN(GpuCommandBufferMsg_CreateImage_Params)
107 IPC_STRUCT_MEMBER(int32_t, id) 86 IPC_STRUCT_MEMBER(int32_t, id)
108 IPC_STRUCT_MEMBER(gfx::GpuMemoryBufferHandle, gpu_memory_buffer) 87 IPC_STRUCT_MEMBER(gfx::GpuMemoryBufferHandle, gpu_memory_buffer)
109 IPC_STRUCT_MEMBER(gfx::Size, size) 88 IPC_STRUCT_MEMBER(gfx::Size, size)
110 IPC_STRUCT_MEMBER(gfx::BufferFormat, format) 89 IPC_STRUCT_MEMBER(gfx::BufferFormat, format)
111 IPC_STRUCT_MEMBER(uint32_t, internal_format) 90 IPC_STRUCT_MEMBER(uint32_t, internal_format)
112 IPC_STRUCT_MEMBER(uint64_t, image_release_count) 91 IPC_STRUCT_MEMBER(uint64_t, image_release_count)
113 IPC_STRUCT_END() 92 IPC_STRUCT_END()
114 93
115 IPC_STRUCT_TRAITS_BEGIN(gpu::DxDiagNode) 94 IPC_STRUCT_TRAITS_BEGIN(gpu::DxDiagNode)
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 // stream Id. 205 // stream Id.
227 IPC_MESSAGE_ROUTED1(GpuStreamTextureMsg_SetSize, 206 IPC_MESSAGE_ROUTED1(GpuStreamTextureMsg_SetSize,
228 gfx::Size /* size */) 207 gfx::Size /* size */)
229 208
230 // Tells the service-side instance to start sending frame available 209 // Tells the service-side instance to start sending frame available
231 // notifications. 210 // notifications.
232 IPC_MESSAGE_ROUTED0(GpuStreamTextureMsg_StartListening) 211 IPC_MESSAGE_ROUTED0(GpuStreamTextureMsg_StartListening)
233 212
234 // Inform the renderer that a new frame is available. 213 // Inform the renderer that a new frame is available.
235 IPC_MESSAGE_ROUTED0(GpuStreamTextureMsg_FrameAvailable) 214 IPC_MESSAGE_ROUTED0(GpuStreamTextureMsg_FrameAvailable)
236
237 // Inform the renderer process that the transform matrix has changed.
238 IPC_MESSAGE_ROUTED1(GpuStreamTextureMsg_MatrixChanged,
239 GpuStreamTextureMsg_MatrixChanged_Params /* params */)
240 #endif 215 #endif
241 216
242 //------------------------------------------------------------------------------ 217 //------------------------------------------------------------------------------
243 // GPU Command Buffer Messages 218 // GPU Command Buffer Messages
244 // These are messages between a renderer process to the GPU process relating to 219 // These are messages between a renderer process to the GPU process relating to
245 // a single OpenGL context. 220 // a single OpenGL context.
246 // Initialize a command buffer with the given number of command entries. 221 // Initialize a command buffer with the given number of command entries.
247 // Returns the shared memory handle for the command buffer mapped to the 222 // Returns the shared memory handle for the command buffer mapped to the
248 // calling process. 223 // calling process.
249 IPC_SYNC_MESSAGE_ROUTED1_2(GpuCommandBufferMsg_Initialize, 224 IPC_SYNC_MESSAGE_ROUTED1_2(GpuCommandBufferMsg_Initialize,
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
332 307
333 // Destroy a previously created image. 308 // Destroy a previously created image.
334 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_DestroyImage, int32_t /* id */) 309 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_DestroyImage, int32_t /* id */)
335 310
336 // Attaches an external image stream to the client texture. 311 // Attaches an external image stream to the client texture.
337 IPC_SYNC_MESSAGE_ROUTED2_1(GpuCommandBufferMsg_CreateStreamTexture, 312 IPC_SYNC_MESSAGE_ROUTED2_1(GpuCommandBufferMsg_CreateStreamTexture,
338 uint32_t, /* client_texture_id */ 313 uint32_t, /* client_texture_id */
339 int32_t, /* stream_id */ 314 int32_t, /* stream_id */
340 bool /* succeeded */) 315 bool /* succeeded */)
341 316
OLDNEW
« no previous file with comments | « no previous file | content/common/gpu/stream_texture_android.h » ('j') | content/common/gpu/stream_texture_android.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698