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

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

Issue 1129943006: Implement StreamTexture::BindTexImage. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: CreateStreamTexture Flow Change. Created 5 years, 5 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 <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 IPC_STRUCT_MEMBER(float, m21) 140 IPC_STRUCT_MEMBER(float, m21)
141 IPC_STRUCT_MEMBER(float, m22) 141 IPC_STRUCT_MEMBER(float, m22)
142 IPC_STRUCT_MEMBER(float, m23) 142 IPC_STRUCT_MEMBER(float, m23)
143 IPC_STRUCT_MEMBER(float, m30) 143 IPC_STRUCT_MEMBER(float, m30)
144 IPC_STRUCT_MEMBER(float, m31) 144 IPC_STRUCT_MEMBER(float, m31)
145 IPC_STRUCT_MEMBER(float, m32) 145 IPC_STRUCT_MEMBER(float, m32)
146 IPC_STRUCT_MEMBER(float, m33) 146 IPC_STRUCT_MEMBER(float, m33)
147 IPC_STRUCT_END() 147 IPC_STRUCT_END()
148 #endif 148 #endif
149 149
150 IPC_STRUCT_TRAITS_BEGIN(gpu::DxDiagNode) 150 IPC_STRUCT_TRAITS_BEGIN(gpu::DxDiagNode)
151 IPC_STRUCT_TRAITS_MEMBER(values) 151 IPC_STRUCT_TRAITS_MEMBER(values)
152 IPC_STRUCT_TRAITS_MEMBER(children) 152 IPC_STRUCT_TRAITS_MEMBER(children)
153 IPC_STRUCT_TRAITS_END() 153 IPC_STRUCT_TRAITS_END()
154 154
155 IPC_STRUCT_TRAITS_BEGIN(gpu::GPUInfo::GPUDevice) 155 IPC_STRUCT_TRAITS_BEGIN(gpu::GPUInfo::GPUDevice)
156 IPC_STRUCT_TRAITS_MEMBER(vendor_id) 156 IPC_STRUCT_TRAITS_MEMBER(vendor_id)
157 IPC_STRUCT_TRAITS_MEMBER(device_id) 157 IPC_STRUCT_TRAITS_MEMBER(device_id)
158 IPC_STRUCT_TRAITS_MEMBER(active) 158 IPC_STRUCT_TRAITS_MEMBER(active)
159 IPC_STRUCT_TRAITS_MEMBER(vendor_string) 159 IPC_STRUCT_TRAITS_MEMBER(vendor_string)
160 IPC_STRUCT_TRAITS_MEMBER(device_string) 160 IPC_STRUCT_TRAITS_MEMBER(device_string)
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
268 268
269 // Tells the GPU process to create a new command buffer that renders directly 269 // Tells the GPU process to create a new command buffer that renders directly
270 // to a native view. A corresponding GpuCommandBufferStub is created. 270 // to a native view. A corresponding GpuCommandBufferStub is created.
271 IPC_MESSAGE_CONTROL5(GpuMsg_CreateViewCommandBuffer, 271 IPC_MESSAGE_CONTROL5(GpuMsg_CreateViewCommandBuffer,
272 gfx::GLSurfaceHandle, /* compositing_surface */ 272 gfx::GLSurfaceHandle, /* compositing_surface */
273 int32, /* surface_id */ 273 int32, /* surface_id */
274 int32, /* client_id */ 274 int32, /* client_id */
275 GPUCreateCommandBufferConfig, /* init_params */ 275 GPUCreateCommandBufferConfig, /* init_params */
276 int32 /* route_id */) 276 int32 /* route_id */)
277 277
278 // Tells the GPU process to create a new stream texture for rendering video*/
reveman 2015/06/29 16:02:01 nit: remove "*/" at the end
sivag 2015/06/30 11:17:17 Corrected in the latest patch.
279 IPC_MESSAGE_CONTROL4(GpuMsg_CreateStreamTexture,
280 int32, /* image_id */
281 int32, /* client_id */
282 int32, /* route_id */
283 int32 /* stream_id */)
284
278 // Tells the GPU process to create a new gpu memory buffer. 285 // Tells the GPU process to create a new gpu memory buffer.
279 IPC_MESSAGE_CONTROL1(GpuMsg_CreateGpuMemoryBuffer, 286 IPC_MESSAGE_CONTROL1(GpuMsg_CreateGpuMemoryBuffer,
280 GpuMsg_CreateGpuMemoryBuffer_Params) 287 GpuMsg_CreateGpuMemoryBuffer_Params)
281 288
282 // Tells the GPU process to destroy buffer. 289 // Tells the GPU process to destroy buffer.
283 IPC_MESSAGE_CONTROL3(GpuMsg_DestroyGpuMemoryBuffer, 290 IPC_MESSAGE_CONTROL3(GpuMsg_DestroyGpuMemoryBuffer,
284 gfx::GpuMemoryBufferId, /* id */ 291 gfx::GpuMemoryBufferId, /* id */
285 int32, /* client_id */ 292 int32, /* client_id */
286 int32 /* sync_point */) 293 int32 /* sync_point */)
287 294
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
349 gpu::GPUInfo /* stats about GPU process*/) 356 gpu::GPUInfo /* stats about GPU process*/)
350 357
351 // A renderer sends this to the browser process when it wants to 358 // A renderer sends this to the browser process when it wants to
352 // create a GL context associated with the given view_id. 359 // create a GL context associated with the given view_id.
353 IPC_SYNC_MESSAGE_CONTROL3_1(GpuHostMsg_CreateViewCommandBuffer, 360 IPC_SYNC_MESSAGE_CONTROL3_1(GpuHostMsg_CreateViewCommandBuffer,
354 int32, /* surface_id */ 361 int32, /* surface_id */
355 GPUCreateCommandBufferConfig, /* init_params */ 362 GPUCreateCommandBufferConfig, /* init_params */
356 int32, /* route_id */ 363 int32, /* route_id */
357 content::CreateCommandBufferResult /* result */) 364 content::CreateCommandBufferResult /* result */)
358 365
366 IPC_SYNC_MESSAGE_CONTROL3_1(GpuHostMsg_CreateStreamTexture,
367 int32, /* image_id */
368 int32, /* route_id */
369 int32, /* stream_id */
370 bool /*result*/)
371
359 // Response from GPU to a GputMsg_Initialize message. 372 // Response from GPU to a GputMsg_Initialize message.
360 IPC_MESSAGE_CONTROL2(GpuHostMsg_Initialized, 373 IPC_MESSAGE_CONTROL2(GpuHostMsg_Initialized,
361 bool /* result */, 374 bool /* result */,
362 ::gpu::GPUInfo /* gpu_info */) 375 ::gpu::GPUInfo /* gpu_info */)
363 376
364 // Response from GPU to a GpuHostMsg_EstablishChannel message. 377 // Response from GPU to a GpuHostMsg_EstablishChannel message.
365 IPC_MESSAGE_CONTROL1(GpuHostMsg_ChannelEstablished, 378 IPC_MESSAGE_CONTROL1(GpuHostMsg_ChannelEstablished,
366 IPC::ChannelHandle /* channel_handle */) 379 IPC::ChannelHandle /* channel_handle */)
367 380
368 // Message from GPU to notify to destroy the channel. 381 // Message from GPU to notify to destroy the channel.
369 IPC_MESSAGE_CONTROL1(GpuHostMsg_DestroyChannel, 382 IPC_MESSAGE_CONTROL1(GpuHostMsg_DestroyChannel,
370 int32 /* client_id */) 383 int32 /* client_id */)
371 384
372 // Message to cache the given shader information. 385 // Message to cache the given shader information.
373 IPC_MESSAGE_CONTROL3(GpuHostMsg_CacheShader, 386 IPC_MESSAGE_CONTROL3(GpuHostMsg_CacheShader,
374 int32 /* client_id */, 387 int32 /* client_id */,
375 std::string /* key */, 388 std::string /* key */,
376 std::string /* shader */) 389 std::string /* shader */)
377 390
378 // Message to the GPU that a shader was loaded from disk. 391 // Message to the GPU that a shader was loaded from disk.
379 IPC_MESSAGE_CONTROL1(GpuMsg_LoadedShader, 392 IPC_MESSAGE_CONTROL1(GpuMsg_LoadedShader,
380 std::string /* encoded shader */) 393 std::string /* encoded shader */)
381 394
382 // Respond from GPU to a GpuMsg_CreateViewCommandBuffer message. 395 // Respond from GPU to a GpuMsg_CreateViewCommandBuffer message.
383 IPC_MESSAGE_CONTROL1(GpuHostMsg_CommandBufferCreated, 396 IPC_MESSAGE_CONTROL1(GpuHostMsg_CommandBufferCreated,
384 content::CreateCommandBufferResult /* result */) 397 content::CreateCommandBufferResult /* result */)
385 398
399 // Respond from GPU to a GpuMsg_CreateViewCommandBuffer message.
reveman 2015/06/29 16:02:00 Response from...
sivag 2015/06/30 11:17:17 Done.
400 IPC_MESSAGE_CONTROL1(GpuHostMsg_StreamTextureCreated, unsigned /* result */)
401
386 // Request from GPU to free the browser resources associated with the 402 // Request from GPU to free the browser resources associated with the
387 // command buffer. 403 // command buffer.
388 IPC_MESSAGE_CONTROL1(GpuHostMsg_DestroyCommandBuffer, 404 IPC_MESSAGE_CONTROL1(GpuHostMsg_DestroyCommandBuffer,
389 int32 /* surface_id */) 405 int32 /* surface_id */)
390 406
391 // Response from GPU to a GpuMsg_CreateGpuMemoryBuffer message. 407 // Response from GPU to a GpuMsg_CreateGpuMemoryBuffer message.
392 IPC_MESSAGE_CONTROL1(GpuHostMsg_GpuMemoryBufferCreated, 408 IPC_MESSAGE_CONTROL1(GpuHostMsg_GpuMemoryBufferCreated,
393 gfx::GpuMemoryBufferHandle /* handle */) 409 gfx::GpuMemoryBufferHandle /* handle */)
394 410
395 // Response from GPU to a GpuMsg_CollectGraphicsInfo. 411 // Response from GPU to a GpuMsg_CollectGraphicsInfo.
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after
642 gfx::GpuMemoryBuffer::Format /* format */, 658 gfx::GpuMemoryBuffer::Format /* format */,
643 uint32 /* internalformat */) 659 uint32 /* internalformat */)
644 660
645 // Destroy a previously created image. 661 // Destroy a previously created image.
646 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_DestroyImage, 662 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_DestroyImage,
647 int32 /* id */) 663 int32 /* id */)
648 664
649 // Attaches an external image stream to the client texture. 665 // Attaches an external image stream to the client texture.
650 IPC_SYNC_MESSAGE_ROUTED2_1(GpuCommandBufferMsg_CreateStreamTexture, 666 IPC_SYNC_MESSAGE_ROUTED2_1(GpuCommandBufferMsg_CreateStreamTexture,
651 uint32, /* client_texture_id */ 667 uint32, /* client_texture_id */
652 int32, /* stream_id */ 668 int32, /* stream_id */
653 bool /* succeeded */) 669 bool /* succeeded */)
654 670
655 //------------------------------------------------------------------------------ 671 //------------------------------------------------------------------------------
656 // Accelerated Video Decoder Messages 672 // Accelerated Video Decoder Messages
657 // These messages are sent from Renderer process to GPU process. 673 // These messages are sent from Renderer process to GPU process.
658 674
659 // Send input buffer for decoding. 675 // Send input buffer for decoding.
660 IPC_MESSAGE_ROUTED3(AcceleratedVideoDecoderMsg_Decode, 676 IPC_MESSAGE_ROUTED3(AcceleratedVideoDecoderMsg_Decode,
661 base::SharedMemoryHandle, /* input_buffer_handle */ 677 base::SharedMemoryHandle, /* input_buffer_handle */
662 int32, /* bitstream_buffer_id */ 678 int32, /* bitstream_buffer_id */
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
792 IPC_MESSAGE_ROUTED0(AcceleratedJpegDecoderMsg_Destroy) 808 IPC_MESSAGE_ROUTED0(AcceleratedJpegDecoderMsg_Destroy)
793 809
794 //------------------------------------------------------------------------------ 810 //------------------------------------------------------------------------------
795 // Accelerated JPEG Decoder Host Messages 811 // Accelerated JPEG Decoder Host Messages
796 // These messages are sent from the GPU process to Browser process. 812 // These messages are sent from the GPU process to Browser process.
797 // 813 //
798 // Report decode status. 814 // Report decode status.
799 IPC_MESSAGE_ROUTED2(AcceleratedJpegDecoderHostMsg_DecodeAck, 815 IPC_MESSAGE_ROUTED2(AcceleratedJpegDecoderHostMsg_DecodeAck,
800 int32, /* bitstream_buffer_id */ 816 int32, /* bitstream_buffer_id */
801 media::JpegDecodeAccelerator::Error /* error */) 817 media::JpegDecodeAccelerator::Error /* error */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698