OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CONTENT_RENDERER_MEDIA_RTC_VIDEO_DECODER_FACTORY_H_ |
| 6 #define CONTENT_RENDERER_MEDIA_RTC_VIDEO_DECODER_FACTORY_H_ |
| 7 |
| 8 #include "base/message_loop_proxy.h" |
| 9 #include "content/common/content_export.h" |
| 10 #include "media/filters/gpu_video_decoder.h" |
| 11 #include "third_party/libjingle/source/talk/media/webrtc/webrtcvideodecoderfacto
ry.h" |
| 12 |
| 13 namespace webrtc { |
| 14 class VideoDecoder; |
| 15 } |
| 16 |
| 17 namespace content { |
| 18 |
| 19 class CONTENT_EXPORT RTCVideoDecoderFactory |
| 20 : NON_EXPORTED_BASE(public cricket::WebRtcVideoDecoderFactory) { |
| 21 public: |
| 22 RTCVideoDecoderFactory( |
| 23 const scoped_refptr<base::MessageLoopProxy>& decoder_message_loop, |
| 24 const scoped_refptr<media::GpuVideoDecoder::Factories>& gpu_factories); |
| 25 |
| 26 virtual webrtc::VideoDecoder* CreateVideoDecoder( |
| 27 webrtc::VideoCodecType type) OVERRIDE; |
| 28 |
| 29 virtual void DestroyVideoDecoder(webrtc::VideoDecoder* decoder) OVERRIDE; |
| 30 |
| 31 private: |
| 32 scoped_refptr<base::MessageLoopProxy> decoder_message_loop_; |
| 33 scoped_refptr<media::GpuVideoDecoder::Factories> gpu_factories_; |
| 34 |
| 35 DISALLOW_COPY_AND_ASSIGN(RTCVideoDecoderFactory); |
| 36 }; |
| 37 |
| 38 } // namespace content |
| 39 |
| 40 #endif // CONTENT_RENDERER_MEDIA_RTC_VIDEO_DECODER_FACTORY_H_ |
OLD | NEW |