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

Side by Side Diff: remoting/protocol/webrtc_frame_scheduler_simple.h

Issue 2782523003: [Remoting Host] Supporting WebRTC VP9 streaming (Closed)
Patch Set: Fix Feedback Created 3 years, 8 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
OLDNEW
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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 int minimum_bitrate_ = 0; 62 int minimum_bitrate_ = 0;
63 int current_target_bitrate_ = 0; 63 int current_target_bitrate_ = 0;
64 }; 64 };
65 65
66 void ScheduleNextFrame(base::TimeTicks now); 66 void ScheduleNextFrame(base::TimeTicks now);
67 void CaptureNextFrame(); 67 void CaptureNextFrame();
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 true after the first key frame is requested.
73 bool encoder_ready_ = false;
74
72 // Set to false until the first frame frame was captured successfully. 75 // Set to false until the first frame frame was captured successfully.
73 bool captured_first_frame_ = false; 76 bool captured_first_frame_ = false;
74 77
75 // Set to true when a key frame was requested. 78 // Set to true when a key frame was requested.
76 bool key_frame_request_ = false; 79 bool key_frame_request_ = false;
77 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
(...skipping 16 matching lines...) Expand all
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_
OLDNEW
« no previous file with comments | « remoting/protocol/webrtc_dummy_video_encoder.cc ('k') | remoting/protocol/webrtc_frame_scheduler_simple.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698