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

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

Issue 10392141: Plumb texture target to VideoDecodeAccelerator::Client (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 7 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 | Annotate | Revision Log
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 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 IPC_STRUCT_TRAITS_MEMBER(parent_context_id) 145 IPC_STRUCT_TRAITS_MEMBER(parent_context_id)
146 IPC_STRUCT_TRAITS_MEMBER(parent_texture_id[0]) 146 IPC_STRUCT_TRAITS_MEMBER(parent_texture_id[0])
147 IPC_STRUCT_TRAITS_MEMBER(parent_texture_id[1]) 147 IPC_STRUCT_TRAITS_MEMBER(parent_texture_id[1])
148 IPC_STRUCT_TRAITS_END() 148 IPC_STRUCT_TRAITS_END()
149 149
150 IPC_ENUM_TRAITS(content::CauseForGpuLaunch) 150 IPC_ENUM_TRAITS(content::CauseForGpuLaunch)
151 IPC_ENUM_TRAITS(gfx::GpuPreference) 151 IPC_ENUM_TRAITS(gfx::GpuPreference)
152 IPC_ENUM_TRAITS(gpu::error::ContextLostReason) 152 IPC_ENUM_TRAITS(gpu::error::ContextLostReason)
153 153
154 IPC_ENUM_TRAITS(media::VideoCodecProfile) 154 IPC_ENUM_TRAITS(media::VideoCodecProfile)
155 IPC_ENUM_TRAITS(media::VideoDecodeAccelerator::TextureTarget);
155 156
156 //------------------------------------------------------------------------------ 157 //------------------------------------------------------------------------------
157 // GPU Messages 158 // GPU Messages
158 // These are messages from the browser to the GPU process. 159 // These are messages from the browser to the GPU process.
159 160
160 // Tells the GPU process to initialize itself. The browser explicitly 161 // Tells the GPU process to initialize itself. The browser explicitly
161 // requests this be done so that we are guaranteed that the channel is set 162 // requests this be done so that we are guaranteed that the channel is set
162 // up between the browser and GPU process before doing any work that might 163 // up between the browser and GPU process before doing any work that might
163 // potentially crash the GPU process. Detection of the child process 164 // potentially crash the GPU process. Detection of the child process
164 // exiting abruptly is predicated on having the IPC channel set up. 165 // exiting abruptly is predicated on having the IPC channel set up.
(...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after
494 // Accelerated Video Decoder Host Messages 495 // Accelerated Video Decoder Host Messages
495 // These messages are sent from GPU process to Renderer process. 496 // These messages are sent from GPU process to Renderer process.
496 // Inform AcceleratedVideoDecoderHost that AcceleratedVideoDecoder has been 497 // Inform AcceleratedVideoDecoderHost that AcceleratedVideoDecoder has been
497 // created. 498 // created.
498 499
499 // Accelerated video decoder has consumed input buffer from transfer buffer. 500 // Accelerated video decoder has consumed input buffer from transfer buffer.
500 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderHostMsg_BitstreamBufferProcessed, 501 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderHostMsg_BitstreamBufferProcessed,
501 int32) /* Processed buffer ID */ 502 int32) /* Processed buffer ID */
502 503
503 // Allocate video frames for output of the hardware video decoder. 504 // Allocate video frames for output of the hardware video decoder.
504 IPC_MESSAGE_ROUTED2(AcceleratedVideoDecoderHostMsg_ProvidePictureBuffers, 505 IPC_MESSAGE_ROUTED3(
505 int32, /* Number of video frames to generate */ 506 AcceleratedVideoDecoderHostMsg_ProvidePictureBuffers,
506 gfx::Size) /* Requested size of buffer */ 507 int32, /* Number of video frames to generate */
508 gfx::Size, /* Requested size of buffer */
509 media::VideoDecodeAccelerator::TextureTarget) /* Texture target */
507 510
508 // Decoder reports that a picture is ready and buffer does not need to be passed 511 // Decoder reports that a picture is ready and buffer does not need to be passed
509 // back to the decoder. 512 // back to the decoder.
510 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderHostMsg_DismissPictureBuffer, 513 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderHostMsg_DismissPictureBuffer,
511 int32) /* Picture buffer ID */ 514 int32) /* Picture buffer ID */
512 515
513 // Decoder reports that a picture is ready. 516 // Decoder reports that a picture is ready.
514 IPC_MESSAGE_ROUTED2(AcceleratedVideoDecoderHostMsg_PictureReady, 517 IPC_MESSAGE_ROUTED2(AcceleratedVideoDecoderHostMsg_PictureReady,
515 int32, /* Picture buffer ID */ 518 int32, /* Picture buffer ID */
516 int32) /* Bitstream buffer ID */ 519 int32) /* Bitstream buffer ID */
517 520
518 // Confirm decoder has been flushed. 521 // Confirm decoder has been flushed.
519 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_FlushDone) 522 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_FlushDone)
520 523
521 // Confirm decoder has been reset. 524 // Confirm decoder has been reset.
522 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_ResetDone) 525 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_ResetDone)
523 526
524 // Video decoder has encountered an error. 527 // Video decoder has encountered an error.
525 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderHostMsg_ErrorNotification, 528 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderHostMsg_ErrorNotification,
526 uint32) /* Error ID */ 529 uint32) /* Error ID */
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698