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

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

Issue 1848923003: Revert of Make Android StreamTexture implement GLStreamTextureImage (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 63
64 IPC_STRUCT_BEGIN(GpuCommandBufferMsg_CreateImage_Params) 64 IPC_STRUCT_BEGIN(GpuCommandBufferMsg_CreateImage_Params)
65 IPC_STRUCT_MEMBER(int32_t, id) 65 IPC_STRUCT_MEMBER(int32_t, id)
66 IPC_STRUCT_MEMBER(gfx::GpuMemoryBufferHandle, gpu_memory_buffer) 66 IPC_STRUCT_MEMBER(gfx::GpuMemoryBufferHandle, gpu_memory_buffer)
67 IPC_STRUCT_MEMBER(gfx::Size, size) 67 IPC_STRUCT_MEMBER(gfx::Size, size)
68 IPC_STRUCT_MEMBER(gfx::BufferFormat, format) 68 IPC_STRUCT_MEMBER(gfx::BufferFormat, format)
69 IPC_STRUCT_MEMBER(uint32_t, internal_format) 69 IPC_STRUCT_MEMBER(uint32_t, internal_format)
70 IPC_STRUCT_MEMBER(uint64_t, image_release_count) 70 IPC_STRUCT_MEMBER(uint64_t, image_release_count)
71 IPC_STRUCT_END() 71 IPC_STRUCT_END()
72 72
73 #if defined(OS_ANDROID)
74 IPC_STRUCT_BEGIN(GpuStreamTextureMsg_MatrixChanged_Params)
75 IPC_STRUCT_MEMBER(float, m00)
76 IPC_STRUCT_MEMBER(float, m01)
77 IPC_STRUCT_MEMBER(float, m02)
78 IPC_STRUCT_MEMBER(float, m03)
79 IPC_STRUCT_MEMBER(float, m10)
80 IPC_STRUCT_MEMBER(float, m11)
81 IPC_STRUCT_MEMBER(float, m12)
82 IPC_STRUCT_MEMBER(float, m13)
83 IPC_STRUCT_MEMBER(float, m20)
84 IPC_STRUCT_MEMBER(float, m21)
85 IPC_STRUCT_MEMBER(float, m22)
86 IPC_STRUCT_MEMBER(float, m23)
87 IPC_STRUCT_MEMBER(float, m30)
88 IPC_STRUCT_MEMBER(float, m31)
89 IPC_STRUCT_MEMBER(float, m32)
90 IPC_STRUCT_MEMBER(float, m33)
91 IPC_STRUCT_END()
92 #endif
93
73 //------------------------------------------------------------------------------ 94 //------------------------------------------------------------------------------
74 // GPU Channel Messages 95 // GPU Channel Messages
75 // These are messages from a renderer process to the GPU process. 96 // These are messages from a renderer process to the GPU process.
76 97
77 // Tells the GPU process to create a new command buffer. A corresponding 98 // Tells the GPU process to create a new command buffer. A corresponding
78 // GpuCommandBufferStub is created. if |surface_handle| is non-null, |size| is 99 // GpuCommandBufferStub is created. if |surface_handle| is non-null, |size| is
79 // ignored, and it will render directly to the native surface (only the browser 100 // ignored, and it will render directly to the native surface (only the browser
80 // process is allowed to create those). Otherwise it will create an offscreen 101 // process is allowed to create those). Otherwise it will create an offscreen
81 // backbuffer of dimensions |size|. 102 // backbuffer of dimensions |size|.
82 IPC_SYNC_MESSAGE_CONTROL4_1(GpuChannelMsg_CreateCommandBuffer, 103 IPC_SYNC_MESSAGE_CONTROL4_1(GpuChannelMsg_CreateCommandBuffer,
(...skipping 25 matching lines...) Expand all
108 // Tells the GPU process to set the size of StreamTexture from the given 129 // Tells the GPU process to set the size of StreamTexture from the given
109 // stream Id. 130 // stream Id.
110 IPC_MESSAGE_ROUTED1(GpuStreamTextureMsg_SetSize, gfx::Size /* size */) 131 IPC_MESSAGE_ROUTED1(GpuStreamTextureMsg_SetSize, gfx::Size /* size */)
111 132
112 // Tells the service-side instance to start sending frame available 133 // Tells the service-side instance to start sending frame available
113 // notifications. 134 // notifications.
114 IPC_MESSAGE_ROUTED0(GpuStreamTextureMsg_StartListening) 135 IPC_MESSAGE_ROUTED0(GpuStreamTextureMsg_StartListening)
115 136
116 // Inform the renderer that a new frame is available. 137 // Inform the renderer that a new frame is available.
117 IPC_MESSAGE_ROUTED0(GpuStreamTextureMsg_FrameAvailable) 138 IPC_MESSAGE_ROUTED0(GpuStreamTextureMsg_FrameAvailable)
139
140 // Inform the renderer process that the transform matrix has changed.
141 IPC_MESSAGE_ROUTED1(GpuStreamTextureMsg_MatrixChanged,
142 GpuStreamTextureMsg_MatrixChanged_Params /* params */)
118 #endif 143 #endif
119 144
120 //------------------------------------------------------------------------------ 145 //------------------------------------------------------------------------------
121 // GPU Command Buffer Messages 146 // GPU Command Buffer Messages
122 // These are messages between a renderer process to the GPU process relating to 147 // These are messages between a renderer process to the GPU process relating to
123 // a single OpenGL context. 148 // a single OpenGL context.
124 // Initialize a command buffer with the given number of command entries. 149 // Initialize a command buffer with the given number of command entries.
125 // Returns the shared memory handle for the command buffer mapped to the 150 // Returns the shared memory handle for the command buffer mapped to the
126 // calling process. 151 // calling process.
127 IPC_SYNC_MESSAGE_ROUTED1_2(GpuCommandBufferMsg_Initialize, 152 IPC_SYNC_MESSAGE_ROUTED1_2(GpuCommandBufferMsg_Initialize,
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 GpuCommandBufferMsg_CreateImage_Params /* params */) 234 GpuCommandBufferMsg_CreateImage_Params /* params */)
210 235
211 // Destroy a previously created image. 236 // Destroy a previously created image.
212 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_DestroyImage, int32_t /* id */) 237 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_DestroyImage, int32_t /* id */)
213 238
214 // Attaches an external image stream to the client texture. 239 // Attaches an external image stream to the client texture.
215 IPC_SYNC_MESSAGE_ROUTED2_1(GpuCommandBufferMsg_CreateStreamTexture, 240 IPC_SYNC_MESSAGE_ROUTED2_1(GpuCommandBufferMsg_CreateStreamTexture,
216 uint32_t, /* client_texture_id */ 241 uint32_t, /* client_texture_id */
217 int32_t, /* stream_id */ 242 int32_t, /* stream_id */
218 bool /* succeeded */) 243 bool /* succeeded */)
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/gles2_cmd_decoder.cc ('k') | media/blink/video_frame_compositor_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698