| 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 MEDIA_FILTERS_GPU_VIDEO_DECODER_H_ | 5 #ifndef MEDIA_FILTERS_GPU_VIDEO_DECODER_H_ |
| 6 #define MEDIA_FILTERS_GPU_VIDEO_DECODER_H_ | 6 #define MEDIA_FILTERS_GPU_VIDEO_DECODER_H_ |
| 7 | 7 |
| 8 #include <list> | 8 #include <list> |
| 9 #include <map> | 9 #include <map> |
| 10 #include <set> | 10 #include <set> |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 const scoped_refptr<MediaLog>& media_log); | 42 const scoped_refptr<MediaLog>& media_log); |
| 43 | 43 |
| 44 // VideoDecoder implementation. | 44 // VideoDecoder implementation. |
| 45 virtual void Initialize(const VideoDecoderConfig& config, | 45 virtual void Initialize(const VideoDecoderConfig& config, |
| 46 bool low_delay, | 46 bool low_delay, |
| 47 const PipelineStatusCB& status_cb, | 47 const PipelineStatusCB& status_cb, |
| 48 const OutputCB& output_cb) OVERRIDE; | 48 const OutputCB& output_cb) OVERRIDE; |
| 49 virtual void Decode(const scoped_refptr<DecoderBuffer>& buffer, | 49 virtual void Decode(const scoped_refptr<DecoderBuffer>& buffer, |
| 50 const DecodeCB& decode_cb) OVERRIDE; | 50 const DecodeCB& decode_cb) OVERRIDE; |
| 51 virtual void Reset(const base::Closure& closure) OVERRIDE; | 51 virtual void Reset(const base::Closure& closure) OVERRIDE; |
| 52 virtual void Stop() OVERRIDE; | |
| 53 virtual bool NeedsBitstreamConversion() const OVERRIDE; | 52 virtual bool NeedsBitstreamConversion() const OVERRIDE; |
| 54 virtual bool CanReadWithoutStalling() const OVERRIDE; | 53 virtual bool CanReadWithoutStalling() const OVERRIDE; |
| 55 virtual int GetMaxDecodeRequests() const OVERRIDE; | 54 virtual int GetMaxDecodeRequests() const OVERRIDE; |
| 56 | 55 |
| 57 // VideoDecodeAccelerator::Client implementation. | 56 // VideoDecodeAccelerator::Client implementation. |
| 58 virtual void ProvidePictureBuffers(uint32 count, | 57 virtual void ProvidePictureBuffers(uint32 count, |
| 59 const gfx::Size& size, | 58 const gfx::Size& size, |
| 60 uint32 texture_target) OVERRIDE; | 59 uint32 texture_target) OVERRIDE; |
| 61 virtual void DismissPictureBuffer(int32 id) OVERRIDE; | 60 virtual void DismissPictureBuffer(int32 id) OVERRIDE; |
| 62 virtual void PictureReady(const media::Picture& picture) OVERRIDE; | 61 virtual void PictureReady(const media::Picture& picture) OVERRIDE; |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 190 // Bound to factories_->GetMessageLoop(). | 189 // Bound to factories_->GetMessageLoop(). |
| 191 // NOTE: Weak pointers must be invalidated before all other member variables. | 190 // NOTE: Weak pointers must be invalidated before all other member variables. |
| 192 base::WeakPtrFactory<GpuVideoDecoder> weak_factory_; | 191 base::WeakPtrFactory<GpuVideoDecoder> weak_factory_; |
| 193 | 192 |
| 194 DISALLOW_COPY_AND_ASSIGN(GpuVideoDecoder); | 193 DISALLOW_COPY_AND_ASSIGN(GpuVideoDecoder); |
| 195 }; | 194 }; |
| 196 | 195 |
| 197 } // namespace media | 196 } // namespace media |
| 198 | 197 |
| 199 #endif // MEDIA_FILTERS_GPU_VIDEO_DECODER_H_ | 198 #endif // MEDIA_FILTERS_GPU_VIDEO_DECODER_H_ |
| OLD | NEW |