| 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 #ifndef CONTENT_RENDERER_MEDIA_GPU_RTC_VIDEO_ENCODER_FACTORY_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_GPU_RTC_VIDEO_ENCODER_FACTORY_H_ |
| 6 #define CONTENT_RENDERER_MEDIA_GPU_RTC_VIDEO_ENCODER_FACTORY_H_ | 6 #define CONTENT_RENDERER_MEDIA_GPU_RTC_VIDEO_ENCODER_FACTORY_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 // cricket::WebRtcVideoEncoderFactory implementation. | 32 // cricket::WebRtcVideoEncoderFactory implementation. |
| 33 webrtc::VideoEncoder* CreateVideoEncoder( | 33 webrtc::VideoEncoder* CreateVideoEncoder( |
| 34 const cricket::VideoCodec& codec) override; | 34 const cricket::VideoCodec& codec) override; |
| 35 const std::vector<cricket::VideoCodec>& supported_codecs() const override; | 35 const std::vector<cricket::VideoCodec>& supported_codecs() const override; |
| 36 void DestroyVideoEncoder(webrtc::VideoEncoder* encoder) override; | 36 void DestroyVideoEncoder(webrtc::VideoEncoder* encoder) override; |
| 37 | 37 |
| 38 private: | 38 private: |
| 39 media::GpuVideoAcceleratorFactories* gpu_factories_; | 39 media::GpuVideoAcceleratorFactories* gpu_factories_; |
| 40 | 40 |
| 41 // List of supported cricket::WebRtcVideoEncoderFactory::VideoCodec. | 41 // List of supported cricket::WebRtcVideoEncoderFactory::VideoCodec. |
| 42 // |profiles_| and |supported_codecs_| have the same length and the profile | |
| 43 // for |supported_codecs_[i]| is |profiles_[i]|. | |
| 44 std::vector<media::VideoCodecProfile> profiles_; | |
| 45 std::vector<cricket::VideoCodec> supported_codecs_; | 42 std::vector<cricket::VideoCodec> supported_codecs_; |
| 46 | 43 |
| 47 DISALLOW_COPY_AND_ASSIGN(RTCVideoEncoderFactory); | 44 DISALLOW_COPY_AND_ASSIGN(RTCVideoEncoderFactory); |
| 48 }; | 45 }; |
| 49 | 46 |
| 50 } // namespace content | 47 } // namespace content |
| 51 | 48 |
| 52 #endif // CONTENT_RENDERER_MEDIA_GPU_RTC_VIDEO_ENCODER_FACTORY_H_ | 49 #endif // CONTENT_RENDERER_MEDIA_GPU_RTC_VIDEO_ENCODER_FACTORY_H_ |
| OLD | NEW |