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

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

Issue 1414793018: Revert of Converted video frame and image callbacks to use new sync tokens. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 IPC_STRUCT_MEMBER(float, m21) 177 IPC_STRUCT_MEMBER(float, m21)
178 IPC_STRUCT_MEMBER(float, m22) 178 IPC_STRUCT_MEMBER(float, m22)
179 IPC_STRUCT_MEMBER(float, m23) 179 IPC_STRUCT_MEMBER(float, m23)
180 IPC_STRUCT_MEMBER(float, m30) 180 IPC_STRUCT_MEMBER(float, m30)
181 IPC_STRUCT_MEMBER(float, m31) 181 IPC_STRUCT_MEMBER(float, m31)
182 IPC_STRUCT_MEMBER(float, m32) 182 IPC_STRUCT_MEMBER(float, m32)
183 IPC_STRUCT_MEMBER(float, m33) 183 IPC_STRUCT_MEMBER(float, m33)
184 IPC_STRUCT_END() 184 IPC_STRUCT_END()
185 #endif 185 #endif
186 186
187 IPC_STRUCT_BEGIN(GpuCommandBufferMsg_CreateImage_Params) 187 IPC_STRUCT_TRAITS_BEGIN(gpu::DxDiagNode)
188 IPC_STRUCT_MEMBER(int32, id)
189 IPC_STRUCT_MEMBER(gfx::GpuMemoryBufferHandle, gpu_memory_buffer)
190 IPC_STRUCT_MEMBER(gfx::Size, size)
191 IPC_STRUCT_MEMBER(gfx::BufferFormat, format)
192 IPC_STRUCT_MEMBER(uint32, internal_format)
193 IPC_STRUCT_MEMBER(uint64, image_release_count)
194 IPC_STRUCT_END()
195
196 IPC_STRUCT_TRAITS_BEGIN(gpu::DxDiagNode)
197 IPC_STRUCT_TRAITS_MEMBER(values) 188 IPC_STRUCT_TRAITS_MEMBER(values)
198 IPC_STRUCT_TRAITS_MEMBER(children) 189 IPC_STRUCT_TRAITS_MEMBER(children)
199 IPC_STRUCT_TRAITS_END() 190 IPC_STRUCT_TRAITS_END()
200 191
201 IPC_STRUCT_TRAITS_BEGIN(gpu::GPUInfo::GPUDevice) 192 IPC_STRUCT_TRAITS_BEGIN(gpu::GPUInfo::GPUDevice)
202 IPC_STRUCT_TRAITS_MEMBER(vendor_id) 193 IPC_STRUCT_TRAITS_MEMBER(vendor_id)
203 IPC_STRUCT_TRAITS_MEMBER(device_id) 194 IPC_STRUCT_TRAITS_MEMBER(device_id)
204 IPC_STRUCT_TRAITS_MEMBER(active) 195 IPC_STRUCT_TRAITS_MEMBER(active)
205 IPC_STRUCT_TRAITS_MEMBER(vendor_string) 196 IPC_STRUCT_TRAITS_MEMBER(vendor_string)
206 IPC_STRUCT_TRAITS_MEMBER(device_string) 197 IPC_STRUCT_TRAITS_MEMBER(device_string)
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
333 GpuMsg_CreateGpuMemoryBuffer_Params) 324 GpuMsg_CreateGpuMemoryBuffer_Params)
334 325
335 // Tells the GPU process to create a new gpu memory buffer from an existing 326 // Tells the GPU process to create a new gpu memory buffer from an existing
336 // handle. 327 // handle.
337 IPC_MESSAGE_CONTROL1(GpuMsg_CreateGpuMemoryBufferFromHandle, 328 IPC_MESSAGE_CONTROL1(GpuMsg_CreateGpuMemoryBufferFromHandle,
338 GpuMsg_CreateGpuMemoryBufferFromHandle_Params) 329 GpuMsg_CreateGpuMemoryBufferFromHandle_Params)
339 330
340 // Tells the GPU process to destroy buffer. 331 // Tells the GPU process to destroy buffer.
341 IPC_MESSAGE_CONTROL3(GpuMsg_DestroyGpuMemoryBuffer, 332 IPC_MESSAGE_CONTROL3(GpuMsg_DestroyGpuMemoryBuffer,
342 gfx::GpuMemoryBufferId, /* id */ 333 gfx::GpuMemoryBufferId, /* id */
343 int32, /* client_id */ 334 int32, /* client_id */
344 gpu::SyncToken /* sync_token */) 335 int32 /* sync_point */)
345 336
346 // Create and initialize a hardware jpeg decoder using the specified route_id. 337 // Create and initialize a hardware jpeg decoder using the specified route_id.
347 // Created decoders should be freed with AcceleratedJpegDecoderMsg_Destroy when 338 // Created decoders should be freed with AcceleratedJpegDecoderMsg_Destroy when
348 // no longer needed. 339 // no longer needed.
349 IPC_SYNC_MESSAGE_CONTROL1_1(GpuMsg_CreateJpegDecoder, 340 IPC_SYNC_MESSAGE_CONTROL1_1(GpuMsg_CreateJpegDecoder,
350 int32 /* route_id */, 341 int32 /* route_id */,
351 bool /* succeeded */) 342 bool /* succeeded */)
352 343
353 // Tells the GPU process to create a context for collecting graphics card 344 // Tells the GPU process to create a context for collecting graphics card
354 // information. 345 // information.
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after
654 IPC_MESSAGE_ROUTED2(GpuCommandBufferMsg_SignalQuery, 645 IPC_MESSAGE_ROUTED2(GpuCommandBufferMsg_SignalQuery,
655 uint32 /* query */, 646 uint32 /* query */,
656 uint32 /* signal_id */) 647 uint32 /* signal_id */)
657 648
658 // Response to SignalSyncPoint, SignalSyncToken, and SignalQuery. 649 // Response to SignalSyncPoint, SignalSyncToken, and SignalQuery.
659 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_SignalAck, 650 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_SignalAck,
660 uint32 /* signal_id */) 651 uint32 /* signal_id */)
661 652
662 // Create an image from an existing gpu memory buffer. The id that can be 653 // Create an image from an existing gpu memory buffer. The id that can be
663 // used to identify the image from a command buffer. 654 // used to identify the image from a command buffer.
664 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_CreateImage, 655 IPC_MESSAGE_ROUTED5(GpuCommandBufferMsg_CreateImage,
665 GpuCommandBufferMsg_CreateImage_Params /* params */) 656 int32 /* id */,
657 gfx::GpuMemoryBufferHandle /* gpu_memory_buffer */,
658 gfx::Size /* size */,
659 gfx::BufferFormat /* format */,
660 uint32 /* internalformat */)
666 661
667 // Destroy a previously created image. 662 // Destroy a previously created image.
668 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_DestroyImage, 663 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_DestroyImage,
669 int32 /* id */) 664 int32 /* id */)
670 665
671 // Attaches an external image stream to the client texture. 666 // Attaches an external image stream to the client texture.
672 IPC_SYNC_MESSAGE_ROUTED2_1(GpuCommandBufferMsg_CreateStreamTexture, 667 IPC_SYNC_MESSAGE_ROUTED2_1(GpuCommandBufferMsg_CreateStreamTexture,
673 uint32, /* client_texture_id */ 668 uint32, /* client_texture_id */
674 int32, /* stream_id */ 669 int32, /* stream_id */
675 bool /* succeeded */) 670 bool /* succeeded */)
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
808 IPC_MESSAGE_ROUTED0(AcceleratedJpegDecoderMsg_Destroy) 803 IPC_MESSAGE_ROUTED0(AcceleratedJpegDecoderMsg_Destroy)
809 804
810 //------------------------------------------------------------------------------ 805 //------------------------------------------------------------------------------
811 // Accelerated JPEG Decoder Host Messages 806 // Accelerated JPEG Decoder Host Messages
812 // These messages are sent from the GPU process to Browser process. 807 // These messages are sent from the GPU process to Browser process.
813 // 808 //
814 // Report decode status. 809 // Report decode status.
815 IPC_MESSAGE_ROUTED2(AcceleratedJpegDecoderHostMsg_DecodeAck, 810 IPC_MESSAGE_ROUTED2(AcceleratedJpegDecoderHostMsg_DecodeAck,
816 int32, /* bitstream_buffer_id */ 811 int32, /* bitstream_buffer_id */
817 media::JpegDecodeAccelerator::Error /* error */) 812 media::JpegDecodeAccelerator::Error /* error */)
OLDNEW
« no previous file with comments | « content/common/gpu/gpu_command_buffer_stub.cc ('k') | content/renderer/media/android/webmediaplayer_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698