| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 CHROME_RENDERER_GPU_VIDEO_DECODER_HOST_H_ | 5 #ifndef CHROME_RENDERER_GPU_VIDEO_DECODER_HOST_H_ |
| 6 #define CHROME_RENDERER_GPU_VIDEO_DECODER_HOST_H_ | 6 #define CHROME_RENDERER_GPU_VIDEO_DECODER_HOST_H_ |
| 7 | 7 |
| 8 #include <deque> | 8 #include <deque> |
| 9 #include <map> | 9 #include <map> |
| 10 | 10 |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 // |message_loop_|. | 43 // |message_loop_|. |
| 44 GpuVideoDecoderHost(MessageRouter* router, | 44 GpuVideoDecoderHost(MessageRouter* router, |
| 45 IPC::Message::Sender* ipc_sender, | 45 IPC::Message::Sender* ipc_sender, |
| 46 int context_route_id, | 46 int context_route_id, |
| 47 int32 decoder_host_id); | 47 int32 decoder_host_id); |
| 48 virtual ~GpuVideoDecoderHost(); | 48 virtual ~GpuVideoDecoderHost(); |
| 49 | 49 |
| 50 // IPC::Channel::Listener. | 50 // IPC::Channel::Listener. |
| 51 virtual void OnChannelConnected(int32 peer_pid) {} | 51 virtual void OnChannelConnected(int32 peer_pid) {} |
| 52 virtual void OnChannelError(); | 52 virtual void OnChannelError(); |
| 53 virtual void OnMessageReceived(const IPC::Message& message); | 53 virtual bool OnMessageReceived(const IPC::Message& message); |
| 54 | 54 |
| 55 // media::VideoDecodeEngine implementation. | 55 // media::VideoDecodeEngine implementation. |
| 56 virtual void Initialize(MessageLoop* message_loop, | 56 virtual void Initialize(MessageLoop* message_loop, |
| 57 VideoDecodeEngine::EventHandler* event_handler, | 57 VideoDecodeEngine::EventHandler* event_handler, |
| 58 media::VideoDecodeContext* context, | 58 media::VideoDecodeContext* context, |
| 59 const media::VideoCodecConfig& config); | 59 const media::VideoCodecConfig& config); |
| 60 virtual void ConsumeVideoSample(scoped_refptr<Buffer> buffer); | 60 virtual void ConsumeVideoSample(scoped_refptr<Buffer> buffer); |
| 61 virtual void ProduceVideoFrame(scoped_refptr<VideoFrame> frame); | 61 virtual void ProduceVideoFrame(scoped_refptr<VideoFrame> frame); |
| 62 virtual void Uninitialize(); | 62 virtual void Uninitialize(); |
| 63 virtual void Flush(); | 63 virtual void Flush(); |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 // The list of video frames allocated by VideoDecodeContext. | 152 // The list of video frames allocated by VideoDecodeContext. |
| 153 std::vector<scoped_refptr<media::VideoFrame> > video_frames_; | 153 std::vector<scoped_refptr<media::VideoFrame> > video_frames_; |
| 154 | 154 |
| 155 // The mapping between video frame ID and a video frame. | 155 // The mapping between video frame ID and a video frame. |
| 156 VideoFrameMap video_frame_map_; | 156 VideoFrameMap video_frame_map_; |
| 157 | 157 |
| 158 DISALLOW_COPY_AND_ASSIGN(GpuVideoDecoderHost); | 158 DISALLOW_COPY_AND_ASSIGN(GpuVideoDecoderHost); |
| 159 }; | 159 }; |
| 160 | 160 |
| 161 #endif // CHROME_RENDERER_GPU_VIDEO_DECODER_HOST_H_ | 161 #endif // CHROME_RENDERER_GPU_VIDEO_DECODER_HOST_H_ |
| OLD | NEW |