| 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 "base/timer/timer.h" | 10 #include "base/timer/timer.h" |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 base::TimeTicks last_capture_started_time_; | 45 base::TimeTicks last_capture_started_time_; |
| 46 | 46 |
| 47 LeakyBucket pacing_bucket_; | 47 LeakyBucket pacing_bucket_; |
| 48 | 48 |
| 49 // Set to true when encoding unchanged frames for top-off. | 49 // Set to true when encoding unchanged frames for top-off. |
| 50 bool top_off_is_active_ = false; | 50 bool top_off_is_active_ = false; |
| 51 | 51 |
| 52 // Accumulator for capture and encoder delay history. | 52 // Accumulator for capture and encoder delay history. |
| 53 RunningSamples frame_processing_delay_us_; | 53 RunningSamples frame_processing_delay_us_; |
| 54 | 54 |
| 55 // Accumulator for encoded frame sizes. |
| 56 RunningSamples encoded_frame_size_; |
| 57 |
| 55 base::OneShotTimer capture_timer_; | 58 base::OneShotTimer capture_timer_; |
| 56 }; | 59 }; |
| 57 | 60 |
| 58 } // namespace protocol | 61 } // namespace protocol |
| 59 } // namespace remoting | 62 } // namespace remoting |
| 60 | 63 |
| 61 #endif // REMOTING_PROTOCOL_WEBRTC_FRAME_SCHEDULER_SIMPLE_H_ | 64 #endif // REMOTING_PROTOCOL_WEBRTC_FRAME_SCHEDULER_SIMPLE_H_ |
| OLD | NEW |