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/gpu/rtc_video_encoder_factory.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "content/public/common/content_switches.h" | 8 #include "content/public/common/content_switches.h" |
9 #include "content/public/common/feature_h264_with_openh264_ffmpeg.h" | 9 #include "content/public/common/feature_h264_with_openh264_ffmpeg.h" |
10 #include "content/renderer/media/rtc_video_encoder.h" | 10 #include "content/renderer/media/gpu/rtc_video_encoder.h" |
11 #include "media/gpu/ipc/client/gpu_video_encode_accelerator_host.h" | 11 #include "media/gpu/ipc/client/gpu_video_encode_accelerator_host.h" |
12 #include "media/renderers/gpu_video_accelerator_factories.h" | 12 #include "media/renderers/gpu_video_accelerator_factories.h" |
13 #include "media/video/video_encode_accelerator.h" | 13 #include "media/video/video_encode_accelerator.h" |
14 | 14 |
15 namespace content { | 15 namespace content { |
16 | 16 |
17 namespace { | 17 namespace { |
18 | 18 |
19 // Translate from media::VideoEncodeAccelerator::SupportedProfile to | 19 // Translate from media::VideoEncodeAccelerator::SupportedProfile to |
20 // one or more instances of cricket::WebRtcVideoEncoderFactory::VideoCodec | 20 // one or more instances of cricket::WebRtcVideoEncoderFactory::VideoCodec |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 RTCVideoEncoderFactory::codecs() const { | 72 RTCVideoEncoderFactory::codecs() const { |
73 return codecs_; | 73 return codecs_; |
74 } | 74 } |
75 | 75 |
76 void RTCVideoEncoderFactory::DestroyVideoEncoder( | 76 void RTCVideoEncoderFactory::DestroyVideoEncoder( |
77 webrtc::VideoEncoder* encoder) { | 77 webrtc::VideoEncoder* encoder) { |
78 delete encoder; | 78 delete encoder; |
79 } | 79 } |
80 | 80 |
81 } // namespace content | 81 } // namespace content |
OLD | NEW |