Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 REMOTING_PROTOCOL_WEBRTC_FRAME_SCHEDULER_SIMPLE_H_ | 5 #ifndef REMOTING_PROTOCOL_WEBRTC_FRAME_SCHEDULER_SIMPLE_H_ |
| 6 #define REMOTING_PROTOCOL_WEBRTC_FRAME_SCHEDULER_SIMPLE_H_ | 6 #define REMOTING_PROTOCOL_WEBRTC_FRAME_SCHEDULER_SIMPLE_H_ |
| 7 | 7 |
| 8 #include "remoting/protocol/webrtc_frame_scheduler.h" | 8 #include "remoting/protocol/webrtc_frame_scheduler.h" |
| 9 | 9 |
| 10 #include <queue> | 10 #include <queue> |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 68 | 68 |
| 69 base::Closure capture_callback_; | 69 base::Closure capture_callback_; |
| 70 bool paused_ = false; | 70 bool paused_ = false; |
| 71 | 71 |
| 72 // Set to false until the first frame frame was captured successfully. | 72 // Set to false until the first frame frame was captured successfully. |
| 73 bool captured_first_frame_ = false; | 73 bool captured_first_frame_ = false; |
| 74 | 74 |
| 75 // Set to true when a key frame was requested. | 75 // Set to true when a key frame was requested. |
| 76 bool key_frame_request_ = false; | 76 bool key_frame_request_ = false; |
| 77 | 77 |
| 78 // Set to true when the encoder is ready to accept frames. | |
|
Sergey Ulanov
2017/04/04 00:21:25
Mention that it's set to true after the first key
Yuwei
2017/04/04 00:50:48
Done.
| |
| 79 bool encoder_ready_ = false; | |
| 80 | |
| 78 base::TimeTicks last_capture_started_time_; | 81 base::TimeTicks last_capture_started_time_; |
| 79 | 82 |
| 80 LeakyBucket pacing_bucket_; | 83 LeakyBucket pacing_bucket_; |
| 81 | 84 |
| 82 EncoderBitrateFilter encoder_bitrate_; | 85 EncoderBitrateFilter encoder_bitrate_; |
| 83 | 86 |
| 84 // Set to true when a frame is being captured or encoded. | 87 // Set to true when a frame is being captured or encoded. |
| 85 bool frame_pending_ = false; | 88 bool frame_pending_ = false; |
| 86 | 89 |
| 87 base::TimeDelta rtt_estimate_; | 90 base::TimeDelta rtt_estimate_; |
| (...skipping 10 matching lines...) Expand all Loading... | |
| 98 base::OneShotTimer capture_timer_; | 101 base::OneShotTimer capture_timer_; |
| 99 | 102 |
| 100 base::ThreadChecker thread_checker_; | 103 base::ThreadChecker thread_checker_; |
| 101 base::WeakPtrFactory<WebrtcFrameSchedulerSimple> weak_factory_; | 104 base::WeakPtrFactory<WebrtcFrameSchedulerSimple> weak_factory_; |
| 102 }; | 105 }; |
| 103 | 106 |
| 104 } // namespace protocol | 107 } // namespace protocol |
| 105 } // namespace remoting | 108 } // namespace remoting |
| 106 | 109 |
| 107 #endif // REMOTING_PROTOCOL_WEBRTC_FRAME_SCHEDULER_SIMPLE_H_ | 110 #endif // REMOTING_PROTOCOL_WEBRTC_FRAME_SCHEDULER_SIMPLE_H_ |
| OLD | NEW |