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

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

Issue 1928873002: Revert to recreating RTCVideoEncoder::Impl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: wuchengli@ comments. Created 4 years, 7 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
« no previous file with comments | « no previous file | content/renderer/media/rtc_video_encoder.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « no previous file | content/renderer/media/rtc_video_encoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698