| 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_GPU_GPU_VIDEO_DECODER_H_ | 5 #ifndef CHROME_GPU_GPU_VIDEO_DECODER_H_ | 
| 6 #define CHROME_GPU_GPU_VIDEO_DECODER_H_ | 6 #define CHROME_GPU_GPU_VIDEO_DECODER_H_ | 
| 7 | 7 | 
| 8 #include <map> | 8 #include <map> | 
| 9 #include <vector> | 9 #include <vector> | 
| 10 | 10 | 
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 95   GpuVideoDecoder(MessageLoop* message_loop, | 95   GpuVideoDecoder(MessageLoop* message_loop, | 
| 96                   int32 decoder_host_id, | 96                   int32 decoder_host_id, | 
| 97                   IPC::Message::Sender* sender, | 97                   IPC::Message::Sender* sender, | 
| 98                   base::ProcessHandle handle, | 98                   base::ProcessHandle handle, | 
| 99                   gpu::gles2::GLES2Decoder* decoder); | 99                   gpu::gles2::GLES2Decoder* decoder); | 
| 100   virtual ~GpuVideoDecoder(); | 100   virtual ~GpuVideoDecoder(); | 
| 101 | 101 | 
| 102   // IPC::Channel::Listener implementation. | 102   // IPC::Channel::Listener implementation. | 
| 103   virtual void OnChannelConnected(int32 peer_pid); | 103   virtual void OnChannelConnected(int32 peer_pid); | 
| 104   virtual void OnChannelError(); | 104   virtual void OnChannelError(); | 
| 105   virtual void OnMessageReceived(const IPC::Message& message); | 105   virtual bool OnMessageReceived(const IPC::Message& message); | 
| 106 | 106 | 
| 107   // VideoDecodeEngine::EventHandler implementation. | 107   // VideoDecodeEngine::EventHandler implementation. | 
| 108   virtual void OnInitializeComplete(const VideoCodecInfo& info); | 108   virtual void OnInitializeComplete(const VideoCodecInfo& info); | 
| 109   virtual void OnUninitializeComplete(); | 109   virtual void OnUninitializeComplete(); | 
| 110   virtual void OnFlushComplete(); | 110   virtual void OnFlushComplete(); | 
| 111   virtual void OnSeekComplete(); | 111   virtual void OnSeekComplete(); | 
| 112   virtual void OnError(); | 112   virtual void OnError(); | 
| 113   virtual void OnFormatChange(VideoStreamInfo stream_info); | 113   virtual void OnFormatChange(VideoStreamInfo stream_info); | 
| 114   virtual void ProduceVideoSample(scoped_refptr<Buffer> buffer); | 114   virtual void ProduceVideoSample(scoped_refptr<Buffer> buffer); | 
| 115   virtual void ConsumeVideoFrame(scoped_refptr<VideoFrame> frame); | 115   virtual void ConsumeVideoFrame(scoped_refptr<VideoFrame> frame); | 
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 195   typedef std::map<int32, scoped_refptr<media::VideoFrame> > VideoFrameMap; | 195   typedef std::map<int32, scoped_refptr<media::VideoFrame> > VideoFrameMap; | 
| 196   VideoFrameMap video_frame_map_; | 196   VideoFrameMap video_frame_map_; | 
| 197 | 197 | 
| 198   media::VideoCodecConfig config_; | 198   media::VideoCodecConfig config_; | 
| 199   media::VideoCodecInfo info_; | 199   media::VideoCodecInfo info_; | 
| 200 | 200 | 
| 201   DISALLOW_COPY_AND_ASSIGN(GpuVideoDecoder); | 201   DISALLOW_COPY_AND_ASSIGN(GpuVideoDecoder); | 
| 202 }; | 202 }; | 
| 203 | 203 | 
| 204 #endif  // CHROME_GPU_GPU_VIDEO_DECODER_H_ | 204 #endif  // CHROME_GPU_GPU_VIDEO_DECODER_H_ | 
| OLD | NEW | 
|---|