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

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

Issue 2757923004: Fix failed capture handling in WebrtcVideoStream (Closed)
Patch Set: . Created 3 years, 9 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_VIDEO_STREAM_H_ 5 #ifndef REMOTING_PROTOCOL_WEBRTC_VIDEO_STREAM_H_
6 #define REMOTING_PROTOCOL_WEBRTC_VIDEO_STREAM_H_ 6 #define REMOTING_PROTOCOL_WEBRTC_VIDEO_STREAM_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 // Used to encode captured frames. Always accessed on the encode thread. 83 // Used to encode captured frames. Always accessed on the encode thread.
84 std::unique_ptr<WebrtcVideoEncoder> encoder_; 84 std::unique_ptr<WebrtcVideoEncoder> encoder_;
85 85
86 scoped_refptr<InputEventTimestampsSource> event_timestamps_source_; 86 scoped_refptr<InputEventTimestampsSource> event_timestamps_source_;
87 87
88 scoped_refptr<webrtc::PeerConnectionInterface> peer_connection_; 88 scoped_refptr<webrtc::PeerConnectionInterface> peer_connection_;
89 scoped_refptr<webrtc::MediaStreamInterface> stream_; 89 scoped_refptr<webrtc::MediaStreamInterface> stream_;
90 90
91 HostVideoStatsDispatcher video_stats_dispatcher_; 91 HostVideoStatsDispatcher video_stats_dispatcher_;
92 92
93 // In case when the capturer failed to capture a frame the corresponding event
94 // timestamps are saved in |next_frame_input_event_timestamps_| to be used for
95 // the following frame.
96 InputEventTimestamps next_frame_input_event_timestamps_;
97
98 // Timestamps for the frame that's being captured. 93 // Timestamps for the frame that's being captured.
99 std::unique_ptr<FrameTimestamps> captured_frame_timestamps_; 94 std::unique_ptr<FrameTimestamps> captured_frame_timestamps_;
100 95
101 std::unique_ptr<WebrtcFrameScheduler> scheduler_; 96 std::unique_ptr<WebrtcFrameScheduler> scheduler_;
102 97
103 webrtc::DesktopSize frame_size_; 98 webrtc::DesktopSize frame_size_;
104 webrtc::DesktopVector frame_dpi_; 99 webrtc::DesktopVector frame_dpi_;
105 Observer* observer_ = nullptr; 100 Observer* observer_ = nullptr;
106 101
107 base::ThreadChecker thread_checker_; 102 base::ThreadChecker thread_checker_;
108 103
109 base::WeakPtrFactory<WebrtcVideoStream> weak_factory_; 104 base::WeakPtrFactory<WebrtcVideoStream> weak_factory_;
110 105
111 DISALLOW_COPY_AND_ASSIGN(WebrtcVideoStream); 106 DISALLOW_COPY_AND_ASSIGN(WebrtcVideoStream);
112 }; 107 };
113 108
114 } // namespace protocol 109 } // namespace protocol
115 } // namespace remoting 110 } // namespace remoting
116 111
117 #endif // REMOTING_PROTOCOL_WEBRTC_VIDEO_STREAM_H_ 112 #endif // REMOTING_PROTOCOL_WEBRTC_VIDEO_STREAM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698