Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(308)

Side by Side Diff: content/renderer/media/rtc_video_encoder_factory.h

Issue 20632002: Add media::VideoEncodeAccelerator with WebRTC integration (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@git-svn
Patch Set: d3982027 CQ nits. Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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/compiler_specific.h"
11 #include "base/memory/ref_counted.h"
12 #include "content/common/content_export.h"
13 #include "third_party/libjingle/source/talk/media/webrtc/webrtcvideoencoderfacto ry.h"
14
15 namespace content {
16
17 class RendererGpuVideoAcceleratorFactories;
18
19 // This class creates RTCVideoEncoder instances (each wrapping a
20 // media::VideoEncodeAccelerator) on behalf of the WebRTC stack.
21 class CONTENT_EXPORT RTCVideoEncoderFactory
22 : NON_EXPORTED_BASE(public cricket::WebRtcVideoEncoderFactory) {
23 public:
24 explicit RTCVideoEncoderFactory(
25 const scoped_refptr<RendererGpuVideoAcceleratorFactories>& gpu_factories);
26 virtual ~RTCVideoEncoderFactory();
27
28 // cricket::WebRtcVideoEncoderFactory implementation.
29 virtual webrtc::VideoEncoder* CreateVideoEncoder(
30 webrtc::VideoCodecType type) OVERRIDE;
31 virtual void AddObserver(Observer* observer) OVERRIDE;
32 virtual void RemoveObserver(Observer* observer) OVERRIDE;
33 virtual const std::vector<VideoCodec>& codecs() const OVERRIDE;
34 virtual void DestroyVideoEncoder(webrtc::VideoEncoder* encoder) OVERRIDE;
35
36 private:
37 const scoped_refptr<RendererGpuVideoAcceleratorFactories> gpu_factories_;
38
39 // Codec support list of cricket::WebRtcVideoEncoderFactory::VideoCodec
40 // instances.
41 std::vector<VideoCodec> codecs_;
42
43 DISALLOW_COPY_AND_ASSIGN(RTCVideoEncoderFactory);
44 };
45
46 } // namespace content
47
48 #endif // CONTENT_RENDERER_MEDIA_RTC_VIDEO_ENCODER_FACTORY_H_
OLDNEW
« no previous file with comments | « content/renderer/media/rtc_video_encoder.cc ('k') | content/renderer/media/rtc_video_encoder_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698