| 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_GPU_GPU_VIDEO_DECODE_ACCELERATOR_H_ |
| 6 #define CONTENT_GPU_GPU_VIDEO_DECODE_ACCELERATOR_H_ | 6 #define CONTENT_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" |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 GpuVideoDecodeAccelerator(IPC::Message::Sender* sender, int32 host_route_id); | 22 GpuVideoDecodeAccelerator(IPC::Message::Sender* sender, int32 host_route_id); |
| 23 virtual ~GpuVideoDecodeAccelerator(); | 23 virtual ~GpuVideoDecodeAccelerator(); |
| 24 | 24 |
| 25 // IPC::Channel::Listener implementation. | 25 // IPC::Channel::Listener implementation. |
| 26 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 26 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
| 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, const gfx::Size& dimensions) OVERRIDE; |
| 33 const gfx::Size& dimensions, | |
| 34 media::VideoDecodeAccelerator::MemoryType type) OVERRIDE; | |
| 35 virtual void DismissPictureBuffer(int32 picture_buffer_id) OVERRIDE; | 33 virtual void DismissPictureBuffer(int32 picture_buffer_id) OVERRIDE; |
| 36 virtual void PictureReady(const media::Picture& picture) OVERRIDE; | 34 virtual void PictureReady(const media::Picture& picture) OVERRIDE; |
| 37 virtual void NotifyEndOfStream() OVERRIDE; | 35 virtual void NotifyEndOfStream() OVERRIDE; |
| 38 virtual void NotifyError(media::VideoDecodeAccelerator::Error error) OVERRIDE; | 36 virtual void NotifyError(media::VideoDecodeAccelerator::Error error) OVERRIDE; |
| 39 virtual void NotifyEndOfBitstreamBuffer(int32 bitstream_buffer_id) OVERRIDE; | 37 virtual void NotifyEndOfBitstreamBuffer(int32 bitstream_buffer_id) OVERRIDE; |
| 40 virtual void NotifyFlushDone() OVERRIDE; | 38 virtual void NotifyFlushDone() OVERRIDE; |
| 41 virtual void NotifyAbortDone() OVERRIDE; | 39 virtual void NotifyAbortDone() OVERRIDE; |
| 42 | 40 |
| 43 // Function to delegate sending to actual sender. | 41 // Function to delegate sending to actual sender. |
| 44 virtual bool Send(IPC::Message* message); | 42 virtual bool Send(IPC::Message* message); |
| (...skipping 26 matching lines...) Expand all Loading... |
| 71 // Route ID to communicate with the host. | 69 // Route ID to communicate with the host. |
| 72 int32 route_id_; | 70 int32 route_id_; |
| 73 | 71 |
| 74 // Pointer to the underlying VideoDecodeAccelerator. | 72 // Pointer to the underlying VideoDecodeAccelerator. |
| 75 media::VideoDecodeAccelerator* video_decode_accelerator_; | 73 media::VideoDecodeAccelerator* video_decode_accelerator_; |
| 76 | 74 |
| 77 DISALLOW_IMPLICIT_CONSTRUCTORS(GpuVideoDecodeAccelerator); | 75 DISALLOW_IMPLICIT_CONSTRUCTORS(GpuVideoDecodeAccelerator); |
| 78 }; | 76 }; |
| 79 | 77 |
| 80 #endif // CONTENT_GPU_GPU_VIDEO_DECODE_ACCELERATOR_H_ | 78 #endif // CONTENT_GPU_GPU_VIDEO_DECODE_ACCELERATOR_H_ |
| OLD | NEW |