| OLD | NEW |
| 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 #ifndef CONTENT_GPU_GPU_VIDEO_DECODE_ACCELERATOR_H_ | 5 #ifndef CONTENT_COMMON_GPU_GPU_VIDEO_DECODE_ACCELERATOR_H_ |
| 6 #define CONTENT_GPU_GPU_VIDEO_DECODE_ACCELERATOR_H_ | 6 #define CONTENT_COMMON_GPU_GPU_VIDEO_DECODE_ACCELERATOR_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| 11 #include "base/shared_memory.h" | 11 #include "base/shared_memory.h" |
| 12 #include "ipc/ipc_channel.h" | 12 #include "ipc/ipc_channel.h" |
| 13 #include "ipc/ipc_message.h" | 13 #include "ipc/ipc_message.h" |
| 14 #include "media/video/video_decode_accelerator.h" | 14 #include "media/video/video_decode_accelerator.h" |
| 15 | 15 |
| 16 class GpuVideoDecodeAccelerator | 16 class GpuVideoDecodeAccelerator |
| (...skipping 10 matching lines...) Expand all Loading... |
| 27 virtual void OnChannelConnected(int32 peer_pid) OVERRIDE; | 27 virtual void OnChannelConnected(int32 peer_pid) OVERRIDE; |
| 28 virtual void OnChannelError() OVERRIDE; | 28 virtual void OnChannelError() OVERRIDE; |
| 29 | 29 |
| 30 // media::VideoDecodeAccelerator::Client implementation. | 30 // media::VideoDecodeAccelerator::Client implementation. |
| 31 virtual void ProvidePictureBuffers( | 31 virtual void ProvidePictureBuffers( |
| 32 uint32 requested_num_of_buffers, | 32 uint32 requested_num_of_buffers, |
| 33 const gfx::Size& dimensions, | 33 const gfx::Size& dimensions, |
| 34 media::VideoDecodeAccelerator::MemoryType type) OVERRIDE; | 34 media::VideoDecodeAccelerator::MemoryType type) OVERRIDE; |
| 35 virtual void DismissPictureBuffer(int32 picture_buffer_id) OVERRIDE; | 35 virtual void DismissPictureBuffer(int32 picture_buffer_id) OVERRIDE; |
| 36 virtual void PictureReady(const media::Picture& picture) OVERRIDE; | 36 virtual void PictureReady(const media::Picture& picture) OVERRIDE; |
| 37 virtual void NotifyInitializeDone() OVERRIDE; |
| 37 virtual void NotifyEndOfStream() OVERRIDE; | 38 virtual void NotifyEndOfStream() OVERRIDE; |
| 38 virtual void NotifyError(media::VideoDecodeAccelerator::Error error) OVERRIDE; | 39 virtual void NotifyError(media::VideoDecodeAccelerator::Error error) OVERRIDE; |
| 39 virtual void NotifyEndOfBitstreamBuffer(int32 bitstream_buffer_id) OVERRIDE; | 40 virtual void NotifyEndOfBitstreamBuffer(int32 bitstream_buffer_id) OVERRIDE; |
| 40 virtual void NotifyFlushDone() OVERRIDE; | 41 virtual void NotifyFlushDone() OVERRIDE; |
| 41 virtual void NotifyAbortDone() OVERRIDE; | 42 virtual void NotifyAbortDone() OVERRIDE; |
| 42 | 43 |
| 43 // Function to delegate sending to actual sender. | 44 // Function to delegate sending to actual sender. |
| 44 virtual bool Send(IPC::Message* message); | 45 virtual bool Send(IPC::Message* message); |
| 45 | 46 |
| 46 void set_video_decode_accelerator( | 47 void set_video_decode_accelerator( |
| (...skipping 23 matching lines...) Expand all Loading... |
| 70 | 71 |
| 71 // Route ID to communicate with the host. | 72 // Route ID to communicate with the host. |
| 72 int32 route_id_; | 73 int32 route_id_; |
| 73 | 74 |
| 74 // Pointer to the underlying VideoDecodeAccelerator. | 75 // Pointer to the underlying VideoDecodeAccelerator. |
| 75 media::VideoDecodeAccelerator* video_decode_accelerator_; | 76 media::VideoDecodeAccelerator* video_decode_accelerator_; |
| 76 | 77 |
| 77 DISALLOW_IMPLICIT_CONSTRUCTORS(GpuVideoDecodeAccelerator); | 78 DISALLOW_IMPLICIT_CONSTRUCTORS(GpuVideoDecodeAccelerator); |
| 78 }; | 79 }; |
| 79 | 80 |
| 80 #endif // CONTENT_GPU_GPU_VIDEO_DECODE_ACCELERATOR_H_ | 81 #endif // CONTENT_COMMON_GPU_GPU_VIDEO_DECODE_ACCELERATOR_H_ |
| OLD | NEW |