Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 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_ENCODER_FACTORY_H_ | |
| 6 #define CONTENT_RENDERER_MEDIA_RTC_VIDEO_ENCODER_FACTORY_H_ | |
| 7 | |
| 8 #include <vector> | |
| 9 | |
| 10 #include "base/threading/thread.h" | |
|
Ami GONE FROM CHROMIUM
2013/08/02 22:00:49
??
sheu
2013/08/03 01:31:03
Done.
| |
| 11 #include "content/common/content_export.h" | |
| 12 #include "third_party/libjingle/source/talk/media/webrtc/webrtcvideoencoderfacto ry.h" | |
| 13 | |
| 14 namespace media { | |
| 15 | |
| 16 class GpuVideoAcceleratorFactories; | |
| 17 | |
| 18 } // namespace media | |
| 19 | |
| 20 namespace content { | |
| 21 | |
| 22 // This classes creates RTCVideoEncoder instances (each wrapping a | |
|
Ami GONE FROM CHROMIUM
2013/08/02 22:00:49
classes
sheu
2013/08/03 01:31:03
Done.
| |
| 23 // media::VideoEncodeAccelerator) on behalf of the WebRTC stack. | |
| 24 class CONTENT_EXPORT RTCVideoEncoderFactory | |
| 25 : NON_EXPORTED_BASE(public cricket::WebRtcVideoEncoderFactory) { | |
| 26 public: | |
| 27 explicit RTCVideoEncoderFactory( | |
| 28 const scoped_refptr<media::GpuVideoAcceleratorFactories>& gpu_factories); | |
| 29 virtual ~RTCVideoEncoderFactory(); | |
| 30 | |
| 31 // cricket::WebRtcVideoEncoderFactory implementation. | |
| 32 virtual webrtc::VideoEncoder* CreateVideoEncoder( | |
| 33 webrtc::VideoCodecType type) OVERRIDE; | |
| 34 virtual void AddObserver(Observer* observer) OVERRIDE; | |
| 35 virtual void RemoveObserver(Observer* observer) OVERRIDE; | |
| 36 virtual const std::vector<VideoCodec>& codecs() const OVERRIDE; | |
| 37 virtual void DestroyVideoEncoder(webrtc::VideoEncoder* encoder) OVERRIDE; | |
| 38 | |
| 39 private: | |
| 40 const scoped_refptr<media::GpuVideoAcceleratorFactories> gpu_factories_; | |
| 41 | |
| 42 // Codec support list of cricket::WebRtcVideoEncoderFactory::VideoCodec | |
| 43 // instances. | |
| 44 std::vector<VideoCodec> codecs_; | |
| 45 | |
| 46 DISALLOW_COPY_AND_ASSIGN(RTCVideoEncoderFactory); | |
| 47 }; | |
| 48 | |
| 49 } // namespace content | |
| 50 | |
| 51 #endif // CONTENT_RENDERER_MEDIA_RTC_VIDEO_ENCODER_FACTORY_H_ | |
| OLD | NEW |