| OLD | NEW |
| 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 #ifndef CONTENT_COMMON_GPU_CLIENT_GPU_VIDEO_DECODE_ACCELERATOR_HOST_H_ | 5 #ifndef CONTENT_COMMON_GPU_CLIENT_GPU_VIDEO_DECODE_ACCELERATOR_HOST_H_ |
| 6 #define CONTENT_COMMON_GPU_CLIENT_GPU_VIDEO_DECODE_ACCELERATOR_HOST_H_ | 6 #define CONTENT_COMMON_GPU_CLIENT_GPU_VIDEO_DECODE_ACCELERATOR_HOST_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 // |channel| is used to send IPC messages to GPU process. | 25 // |channel| is used to send IPC messages to GPU process. |
| 26 GpuVideoDecodeAcceleratorHost(GpuChannelHost* channel, | 26 GpuVideoDecodeAcceleratorHost(GpuChannelHost* channel, |
| 27 int32 decoder_route_id, | 27 int32 decoder_route_id, |
| 28 media::VideoDecodeAccelerator::Client* client); | 28 media::VideoDecodeAccelerator::Client* client); |
| 29 | 29 |
| 30 // IPC::Channel::Listener implementation. | 30 // IPC::Channel::Listener implementation. |
| 31 virtual void OnChannelError() OVERRIDE; | 31 virtual void OnChannelError() OVERRIDE; |
| 32 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 32 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
| 33 | 33 |
| 34 // media::VideoDecodeAccelerator implementation. | 34 // media::VideoDecodeAccelerator implementation. |
| 35 virtual bool Initialize(media::VideoCodecProfile profile) OVERRIDE; | 35 virtual bool Initialize(media::VideoCodecProfile profile, |
| 36 const gfx::Size& frame_size, |
| 37 const std::vector<uint8_t>& extra_data) OVERRIDE; |
| 36 virtual void Decode(const media::BitstreamBuffer& bitstream_buffer) OVERRIDE; | 38 virtual void Decode(const media::BitstreamBuffer& bitstream_buffer) OVERRIDE; |
| 37 virtual void AssignPictureBuffers( | 39 virtual void AssignPictureBuffers( |
| 38 const std::vector<media::PictureBuffer>& buffers) OVERRIDE; | 40 const std::vector<media::PictureBuffer>& buffers) OVERRIDE; |
| 39 virtual void ReusePictureBuffer(int32 picture_buffer_id) OVERRIDE; | 41 virtual void ReusePictureBuffer(int32 picture_buffer_id) OVERRIDE; |
| 40 virtual void Flush() OVERRIDE; | 42 virtual void Flush() OVERRIDE; |
| 41 virtual void Reset() OVERRIDE; | 43 virtual void Reset() OVERRIDE; |
| 42 virtual void Destroy() OVERRIDE; | 44 virtual void Destroy() OVERRIDE; |
| 43 | 45 |
| 44 protected: | 46 protected: |
| 45 virtual ~GpuVideoDecodeAcceleratorHost(); | 47 virtual ~GpuVideoDecodeAcceleratorHost(); |
| (...skipping 19 matching lines...) Expand all Loading... |
| 65 // attempting to use an outdated or reused route id. | 67 // attempting to use an outdated or reused route id. |
| 66 int32 decoder_route_id_; | 68 int32 decoder_route_id_; |
| 67 | 69 |
| 68 // Reference to the client that will receive callbacks from the decoder. | 70 // Reference to the client that will receive callbacks from the decoder. |
| 69 media::VideoDecodeAccelerator::Client* client_; | 71 media::VideoDecodeAccelerator::Client* client_; |
| 70 | 72 |
| 71 DISALLOW_COPY_AND_ASSIGN(GpuVideoDecodeAcceleratorHost); | 73 DISALLOW_COPY_AND_ASSIGN(GpuVideoDecodeAcceleratorHost); |
| 72 }; | 74 }; |
| 73 | 75 |
| 74 #endif // CONTENT_COMMON_GPU_CLIENT_GPU_VIDEO_DECODE_ACCELERATOR_HOST_H_ | 76 #endif // CONTENT_COMMON_GPU_CLIENT_GPU_VIDEO_DECODE_ACCELERATOR_HOST_H_ |
| OLD | NEW |