OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 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 #include "content/renderer/media/rtc_video_encoder_factory.h" | 5 #include "content/renderer/media/rtc_video_encoder_factory.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "content/common/gpu/client/gpu_video_encode_accelerator_host.h" | 8 #include "content/common/gpu/client/gpu_video_encode_accelerator_host.h" |
9 #include "content/public/common/content_switches.h" | 9 #include "content/public/common/content_switches.h" |
10 #include "content/renderer/media/rtc_video_encoder.h" | 10 #include "content/renderer/media/rtc_video_encoder.h" |
11 #include "media/filters/gpu_video_accelerator_factories.h" | 11 #include "media/renderers/gpu_video_accelerator_factories.h" |
12 #include "media/video/video_encode_accelerator.h" | 12 #include "media/video/video_encode_accelerator.h" |
13 | 13 |
14 namespace content { | 14 namespace content { |
15 | 15 |
16 namespace { | 16 namespace { |
17 | 17 |
18 // Translate from media::VideoEncodeAccelerator::SupportedProfile to | 18 // Translate from media::VideoEncodeAccelerator::SupportedProfile to |
19 // one or more instances of cricket::WebRtcVideoEncoderFactory::VideoCodec | 19 // one or more instances of cricket::WebRtcVideoEncoderFactory::VideoCodec |
20 void VEAToWebRTCCodecs( | 20 void VEAToWebRTCCodecs( |
21 std::vector<cricket::WebRtcVideoEncoderFactory::VideoCodec>* codecs, | 21 std::vector<cricket::WebRtcVideoEncoderFactory::VideoCodec>* codecs, |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 RTCVideoEncoderFactory::codecs() const { | 70 RTCVideoEncoderFactory::codecs() const { |
71 return codecs_; | 71 return codecs_; |
72 } | 72 } |
73 | 73 |
74 void RTCVideoEncoderFactory::DestroyVideoEncoder( | 74 void RTCVideoEncoderFactory::DestroyVideoEncoder( |
75 webrtc::VideoEncoder* encoder) { | 75 webrtc::VideoEncoder* encoder) { |
76 delete encoder; | 76 delete encoder; |
77 } | 77 } |
78 | 78 |
79 } // namespace content | 79 } // namespace content |
OLD | NEW |