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

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

Issue 7021020: Clean up video frame sizes, types in Video Decode API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: cleanup Created 9 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
« no previous file with comments | « no previous file | content/common/gpu/gpu_video_decode_accelerator.h » ('j') | media/video/picture.h » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #include <vector> 5 #include <vector>
6 #include <string> 6 #include <string>
7 7
8 8
9 #include "base/shared_memory.h" 9 #include "base/shared_memory.h"
10 #include "content/common/common_param_traits.h" 10 #include "content/common/common_param_traits.h"
(...skipping 570 matching lines...) Expand 10 before | Expand all | Expand 10 after
581 // Accelerated Video Decoder Host Messages 581 // Accelerated Video Decoder Host Messages
582 // These messages are sent from GPU process to Renderer process. 582 // These messages are sent from GPU process to Renderer process.
583 // Inform AcceleratedVideoDecoderHost that AcceleratedVideoDecoder has been 583 // Inform AcceleratedVideoDecoderHost that AcceleratedVideoDecoder has been
584 // created. 584 // created.
585 585
586 // Accelerated video decoder has consumed input buffer from transfer buffer. 586 // Accelerated video decoder has consumed input buffer from transfer buffer.
587 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderHostMsg_BitstreamBufferProcessed, 587 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderHostMsg_BitstreamBufferProcessed,
588 int32) /* Processed buffer ID */ 588 int32) /* Processed buffer ID */
589 589
590 // Allocate video frames for output of the hardware video decoder. 590 // Allocate video frames for output of the hardware video decoder.
591 IPC_MESSAGE_ROUTED3(AcceleratedVideoDecoderHostMsg_ProvidePictureBuffers, 591 IPC_MESSAGE_ROUTED2(AcceleratedVideoDecoderHostMsg_ProvidePictureBuffers,
592 int32, /* Number of video frames to generate */ 592 int32, /* Number of video frames to generate */
593 gfx::Size, /* Requested size of buffer */ 593 gfx::Size) /* Requested size of buffer */
594 int32) /* Type of buffer */
595 594
596 // Decoder has been created and is ready for initialization. 595 // Decoder has been created and is ready for initialization.
597 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderHostMsg_CreateDone, 596 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderHostMsg_CreateDone,
598 int32) /* Decoder ID */ 597 int32) /* Decoder ID */
599 598
600 // Decoder reports that a picture is ready and buffer does not need to be passed 599 // Decoder reports that a picture is ready and buffer does not need to be passed
601 // back to the decoder. 600 // back to the decoder.
602 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderHostMsg_DismissPictureBuffer, 601 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderHostMsg_DismissPictureBuffer,
603 int32) /* Picture buffer ID */ 602 int32) /* Picture buffer ID */
604 603
605 // Decoder reports that a picture is ready. 604 // Decoder reports that a picture is ready.
606 IPC_MESSAGE_ROUTED4(AcceleratedVideoDecoderHostMsg_PictureReady, 605 IPC_MESSAGE_ROUTED2(AcceleratedVideoDecoderHostMsg_PictureReady,
607 int32, /* Picture buffer ID */ 606 int32, /* Picture buffer ID */
608 int32, /* Bitstream buffer ID */ 607 int32) /* Bitstream buffer ID */
609 gfx::Size, /* Visible size */
610 gfx::Size) /* Decoded size */
611 608
612 // Confirm decoder has been flushed. 609 // Confirm decoder has been flushed.
613 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_FlushDone) 610 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_FlushDone)
614 611
615 // Confirm decoder has been aborted. 612 // Confirm decoder has been aborted.
616 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_AbortDone) 613 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_AbortDone)
617 614
618 // Decoder has faced end of stream marker in the stream. 615 // Decoder has faced end of stream marker in the stream.
619 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_EndOfStream) 616 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_EndOfStream)
620 617
621 // Video decoder has encountered an error. 618 // Video decoder has encountered an error.
622 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderHostMsg_ErrorNotification, 619 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderHostMsg_ErrorNotification,
623 uint32) /* Error ID */ 620 uint32) /* Error ID */
OLDNEW
« no previous file with comments | « no previous file | content/common/gpu/gpu_video_decode_accelerator.h » ('j') | media/video/picture.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698