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/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
(...skipping 15 matching lines...) Expand all Loading... |
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 virtual ~GpuVideoDecodeAcceleratorHost(); | 29 virtual ~GpuVideoDecodeAcceleratorHost(); |
30 | 30 |
31 // IPC::Channel::Listener implementation. | 31 // IPC::Channel::Listener implementation. |
32 virtual void OnChannelError() OVERRIDE; | 32 virtual void OnChannelError() OVERRIDE; |
33 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 33 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
34 | 34 |
35 // media::VideoDecodeAccelerator implementation. | 35 // media::VideoDecodeAccelerator implementation. |
36 virtual bool Initialize(const std::vector<int32>& configs) OVERRIDE; | 36 virtual bool Initialize(Profile profile) OVERRIDE; |
37 virtual void Decode(const media::BitstreamBuffer& bitstream_buffer) OVERRIDE; | 37 virtual void Decode(const media::BitstreamBuffer& bitstream_buffer) OVERRIDE; |
38 virtual void AssignPictureBuffers( | 38 virtual void AssignPictureBuffers( |
39 const std::vector<media::PictureBuffer>& buffers) OVERRIDE; | 39 const std::vector<media::PictureBuffer>& buffers) OVERRIDE; |
40 virtual void ReusePictureBuffer(int32 picture_buffer_id) OVERRIDE; | 40 virtual void ReusePictureBuffer(int32 picture_buffer_id) OVERRIDE; |
41 virtual void Flush() OVERRIDE; | 41 virtual void Flush() OVERRIDE; |
42 virtual void Reset() OVERRIDE; | 42 virtual void Reset() OVERRIDE; |
43 virtual void Destroy() OVERRIDE; | 43 virtual void Destroy() OVERRIDE; |
44 | 44 |
45 private: | 45 private: |
46 void Send(IPC::Message* message); | 46 void Send(IPC::Message* message); |
(...skipping 17 matching lines...) Expand all Loading... |
64 // attempting to use an outdated or reused route id. | 64 // attempting to use an outdated or reused route id. |
65 int32 decoder_route_id_; | 65 int32 decoder_route_id_; |
66 | 66 |
67 // Reference to the client that will receive callbacks from the decoder. | 67 // Reference to the client that will receive callbacks from the decoder. |
68 media::VideoDecodeAccelerator::Client* client_; | 68 media::VideoDecodeAccelerator::Client* client_; |
69 | 69 |
70 DISALLOW_COPY_AND_ASSIGN(GpuVideoDecodeAcceleratorHost); | 70 DISALLOW_COPY_AND_ASSIGN(GpuVideoDecodeAcceleratorHost); |
71 }; | 71 }; |
72 | 72 |
73 #endif // CONTENT_RENDERER_GPU_GPU_VIDEO_DECODE_ACCELERATOR_HOST_H_ | 73 #endif // CONTENT_RENDERER_GPU_GPU_VIDEO_DECODE_ACCELERATOR_HOST_H_ |
OLD | NEW |