| 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_RENDERER_GPU_GPU_VIDEO_DECODE_ACCELERATOR_HOST_H_ | 5 #ifndef CONTENT_RENDERER_GPU_GPU_VIDEO_DECODE_ACCELERATOR_HOST_H_ |
| 6 #define CONTENT_RENDERER_GPU_GPU_VIDEO_DECODE_ACCELERATOR_HOST_H_ | 6 #define CONTENT_RENDERER_GPU_GPU_VIDEO_DECODE_ACCELERATOR_HOST_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/threading/non_thread_safe.h" | 10 #include "base/threading/non_thread_safe.h" |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 GpuVideoDecodeAcceleratorHost(IPC::Message::Sender* ipc_sender, | 23 GpuVideoDecodeAcceleratorHost(IPC::Message::Sender* ipc_sender, |
| 24 int32 command_buffer_route_id, | 24 int32 command_buffer_route_id, |
| 25 media::VideoDecodeAccelerator::Client* client); | 25 media::VideoDecodeAccelerator::Client* client); |
| 26 virtual ~GpuVideoDecodeAcceleratorHost(); | 26 virtual ~GpuVideoDecodeAcceleratorHost(); |
| 27 | 27 |
| 28 // IPC::Channel::Listener implementation. | 28 // IPC::Channel::Listener implementation. |
| 29 virtual void OnChannelError() OVERRIDE; | 29 virtual void OnChannelError() OVERRIDE; |
| 30 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 30 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
| 31 | 31 |
| 32 // media::VideoDecodeAccelerator implementation. | 32 // media::VideoDecodeAccelerator implementation. |
| 33 virtual bool Initialize(const std::vector<uint32>& configs) OVERRIDE; | 33 virtual bool Initialize(const std::vector<int32>& configs) OVERRIDE; |
| 34 virtual void Decode(const media::BitstreamBuffer& bitstream_buffer) OVERRIDE; | 34 virtual void Decode(const media::BitstreamBuffer& bitstream_buffer) OVERRIDE; |
| 35 virtual void AssignPictureBuffers( | 35 virtual void AssignPictureBuffers( |
| 36 const std::vector<media::PictureBuffer>& buffers) OVERRIDE; | 36 const std::vector<media::PictureBuffer>& buffers) OVERRIDE; |
| 37 virtual void ReusePictureBuffer(int32 picture_buffer_id) OVERRIDE; | 37 virtual void ReusePictureBuffer(int32 picture_buffer_id) OVERRIDE; |
| 38 virtual void Flush() OVERRIDE; | 38 virtual void Flush() OVERRIDE; |
| 39 virtual void Reset() OVERRIDE; | 39 virtual void Reset() OVERRIDE; |
| 40 virtual void Destroy() OVERRIDE; | 40 virtual void Destroy() OVERRIDE; |
| 41 | 41 |
| 42 private: | 42 private: |
| 43 void Send(IPC::Message* message); | 43 void Send(IPC::Message* message); |
| (...skipping 18 matching lines...) Expand all Loading... |
| 62 // attempting to use an outdated or reused route id. | 62 // attempting to use an outdated or reused route id. |
| 63 int32 command_buffer_route_id_; | 63 int32 command_buffer_route_id_; |
| 64 | 64 |
| 65 // Reference to the client that will receive callbacks from the decoder. | 65 // Reference to the client that will receive callbacks from the decoder. |
| 66 media::VideoDecodeAccelerator::Client* client_; | 66 media::VideoDecodeAccelerator::Client* client_; |
| 67 | 67 |
| 68 DISALLOW_COPY_AND_ASSIGN(GpuVideoDecodeAcceleratorHost); | 68 DISALLOW_COPY_AND_ASSIGN(GpuVideoDecodeAcceleratorHost); |
| 69 }; | 69 }; |
| 70 | 70 |
| 71 #endif // CONTENT_RENDERER_GPU_GPU_VIDEO_DECODE_ACCELERATOR_HOST_H_ | 71 #endif // CONTENT_RENDERER_GPU_GPU_VIDEO_DECODE_ACCELERATOR_HOST_H_ |
| OLD | NEW |