| 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 29 matching lines...) Expand all Loading... |
| 40 class MEDIA_EXPORT GpuVideoDecoder | 40 class MEDIA_EXPORT GpuVideoDecoder |
| 41 : public VideoDecoder, | 41 : public VideoDecoder, |
| 42 public VideoDecodeAccelerator::Client { | 42 public VideoDecodeAccelerator::Client { |
| 43 public: | 43 public: |
| 44 explicit GpuVideoDecoder(GpuVideoAcceleratorFactories* factories); | 44 explicit GpuVideoDecoder(GpuVideoAcceleratorFactories* factories); |
| 45 | 45 |
| 46 // VideoDecoder implementation. | 46 // VideoDecoder implementation. |
| 47 std::string GetDisplayName() const override; | 47 std::string GetDisplayName() const override; |
| 48 void Initialize(const VideoDecoderConfig& config, | 48 void Initialize(const VideoDecoderConfig& config, |
| 49 bool low_delay, | 49 bool low_delay, |
| 50 const SetCdmReadyCB& set_cdm_ready_cb, |
| 50 const InitCB& init_cb, | 51 const InitCB& init_cb, |
| 51 const OutputCB& output_cb) override; | 52 const OutputCB& output_cb) override; |
| 52 void Decode(const scoped_refptr<DecoderBuffer>& buffer, | 53 void Decode(const scoped_refptr<DecoderBuffer>& buffer, |
| 53 const DecodeCB& decode_cb) override; | 54 const DecodeCB& decode_cb) override; |
| 54 void Reset(const base::Closure& closure) override; | 55 void Reset(const base::Closure& closure) override; |
| 55 bool NeedsBitstreamConversion() const override; | 56 bool NeedsBitstreamConversion() const override; |
| 56 bool CanReadWithoutStalling() const override; | 57 bool CanReadWithoutStalling() const override; |
| 57 int GetMaxDecodeRequests() const override; | 58 int GetMaxDecodeRequests() const override; |
| 58 | 59 |
| 59 // VideoDecodeAccelerator::Client implementation. | 60 // VideoDecodeAccelerator::Client implementation. |
| (...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 195 // Bound to factories_->GetMessageLoop(). | 196 // Bound to factories_->GetMessageLoop(). |
| 196 // NOTE: Weak pointers must be invalidated before all other member variables. | 197 // NOTE: Weak pointers must be invalidated before all other member variables. |
| 197 base::WeakPtrFactory<GpuVideoDecoder> weak_factory_; | 198 base::WeakPtrFactory<GpuVideoDecoder> weak_factory_; |
| 198 | 199 |
| 199 DISALLOW_COPY_AND_ASSIGN(GpuVideoDecoder); | 200 DISALLOW_COPY_AND_ASSIGN(GpuVideoDecoder); |
| 200 }; | 201 }; |
| 201 | 202 |
| 202 } // namespace media | 203 } // namespace media |
| 203 | 204 |
| 204 #endif // MEDIA_FILTERS_GPU_VIDEO_DECODER_H_ | 205 #endif // MEDIA_FILTERS_GPU_VIDEO_DECODER_H_ |
| OLD | NEW |