| 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_RTC_VIDEO_ENCODER_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_RTC_VIDEO_ENCODER_H_ |
| 6 #define CONTENT_RENDERER_MEDIA_RTC_VIDEO_ENCODER_H_ | 6 #define CONTENT_RENDERER_MEDIA_RTC_VIDEO_ENCODER_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 int32_t SetChannelParameters(uint32_t packet_loss, int64_t rtt) override; | 56 int32_t SetChannelParameters(uint32_t packet_loss, int64_t rtt) override; |
| 57 int32_t SetRates(uint32_t new_bit_rate, uint32_t frame_rate) override; | 57 int32_t SetRates(uint32_t new_bit_rate, uint32_t frame_rate) override; |
| 58 | 58 |
| 59 private: | 59 private: |
| 60 class Impl; | 60 class Impl; |
| 61 friend class RTCVideoEncoder::Impl; | 61 friend class RTCVideoEncoder::Impl; |
| 62 | 62 |
| 63 void RecordInitEncodeUMA(int32_t init_retval, | 63 void RecordInitEncodeUMA(int32_t init_retval, |
| 64 media::VideoCodecProfile profile); | 64 media::VideoCodecProfile profile); |
| 65 | 65 |
| 66 // The video codec type, as reported to WebRTC. |
| 67 const webrtc::VideoCodecType video_codec_type_; |
| 68 |
| 66 // Factory for creating VEAs, shared memory buffers, etc. | 69 // Factory for creating VEAs, shared memory buffers, etc. |
| 67 media::GpuVideoAcceleratorFactories* gpu_factories_; | 70 media::GpuVideoAcceleratorFactories* gpu_factories_; |
| 68 | 71 |
| 69 // Task runner that the video accelerator runs on. | 72 // Task runner that the video accelerator runs on. |
| 70 const scoped_refptr<base::SingleThreadTaskRunner> gpu_task_runner_; | 73 const scoped_refptr<base::SingleThreadTaskRunner> gpu_task_runner_; |
| 71 | 74 |
| 72 // The RTCVideoEncoder::Impl that does all the work. | 75 // The RTCVideoEncoder::Impl that does all the work. |
| 73 scoped_refptr<Impl> impl_; | 76 scoped_refptr<Impl> impl_; |
| 74 | 77 |
| 75 DISALLOW_COPY_AND_ASSIGN(RTCVideoEncoder); | 78 DISALLOW_COPY_AND_ASSIGN(RTCVideoEncoder); |
| 76 }; | 79 }; |
| 77 | 80 |
| 78 } // namespace content | 81 } // namespace content |
| 79 | 82 |
| 80 #endif // CONTENT_RENDERER_MEDIA_RTC_VIDEO_ENCODER_H_ | 83 #endif // CONTENT_RENDERER_MEDIA_RTC_VIDEO_ENCODER_H_ |
| OLD | NEW |