| Index: content/common/gpu/media/vt_video_encode_accelerator_mac.h
|
| diff --git a/content/common/gpu/media/vt_video_encode_accelerator_mac.h b/content/common/gpu/media/vt_video_encode_accelerator_mac.h
|
| index dfa180e5741fc017583b9cd3d7b71a36cda0cbb3..8b9d49739c398b4f0a29ff3158cb223a911a1c94 100644
|
| --- a/content/common/gpu/media/vt_video_encode_accelerator_mac.h
|
| +++ b/content/common/gpu/media/vt_video_encode_accelerator_mac.h
|
| @@ -12,6 +12,7 @@
|
| #include "media/base/mac/videotoolbox_glue.h"
|
| #include "media/base/mac/videotoolbox_helpers.h"
|
| #include "media/video/video_encode_accelerator.h"
|
| +#include "third_party/webrtc/common_video/include/bitrate_adjuster.h"
|
|
|
| namespace content {
|
|
|
| @@ -107,6 +108,10 @@ class CONTENT_EXPORT VTVideoEncodeAccelerator
|
| size_t bitstream_buffer_size_;
|
| int32_t frame_rate_;
|
| int32_t target_bitrate_;
|
| + int32_t adjusted_bitrate_;
|
| +
|
| + // Bitrate adjuster used to fix VideoToolbox's inconsistent bitrate issues.
|
| + webrtc::BitrateAdjuster bitrate_adjuster_;
|
|
|
| // Bitstream buffers ready to be used to return encoded output as a FIFO.
|
| std::deque<std::unique_ptr<BitstreamBufferRef>> bitstream_buffer_queue_;
|
|
|