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

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

Issue 2443103003: Remove unused include in sequenced_worker_pool.h (Closed)
Patch Set: and more! Created 4 years, 1 month 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 #include "remoting/protocol/webrtc_video_stream.h" 5 #include "remoting/protocol/webrtc_video_stream.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/single_thread_task_runner.h" 8 #include "base/single_thread_task_runner.h"
9 #include "base/task_runner_util.h" 9 #include "base/task_runner_util.h"
10 #include "base/threading/thread_task_runner_handle.h" 10 #include "base/threading/thread_task_runner_handle.h"
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 DCHECK(webrtc_transport); 64 DCHECK(webrtc_transport);
65 DCHECK(desktop_capturer); 65 DCHECK(desktop_capturer);
66 DCHECK(encode_task_runner); 66 DCHECK(encode_task_runner);
67 67
68 scoped_refptr<webrtc::PeerConnectionFactoryInterface> peer_connection_factory( 68 scoped_refptr<webrtc::PeerConnectionFactoryInterface> peer_connection_factory(
69 webrtc_transport->peer_connection_factory()); 69 webrtc_transport->peer_connection_factory());
70 peer_connection_ = webrtc_transport->peer_connection(); 70 peer_connection_ = webrtc_transport->peer_connection();
71 DCHECK(peer_connection_factory); 71 DCHECK(peer_connection_factory);
72 DCHECK(peer_connection_); 72 DCHECK(peer_connection_);
73 73
74 encode_task_runner_ = encode_task_runner; 74 encode_task_runner_ = std::move(encode_task_runner);
75 capturer_ = std::move(desktop_capturer); 75 capturer_ = std::move(desktop_capturer);
76 webrtc_transport_ = webrtc_transport; 76 webrtc_transport_ = webrtc_transport;
77 // TODO(isheriff): make this codec independent 77 // TODO(isheriff): make this codec independent
78 encoder_ = WebrtcVideoEncoderVpx::CreateForVP8(); 78 encoder_ = WebrtcVideoEncoderVpx::CreateForVP8();
79 capturer_->Start(this); 79 capturer_->Start(this);
80 80
81 // Set video stream constraints. 81 // Set video stream constraints.
82 webrtc::FakeConstraints video_constraints; 82 webrtc::FakeConstraints video_constraints;
83 video_constraints.AddMandatory( 83 video_constraints.AddMandatory(
84 webrtc::MediaConstraintsInterface::kMinFrameRate, 5); 84 webrtc::MediaConstraintsInterface::kMinFrameRate, 5);
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
250 // TODO(sergeyu): Figure out how to measure send_pending time with WebRTC 250 // TODO(sergeyu): Figure out how to measure send_pending time with WebRTC
251 // and set it here. 251 // and set it here.
252 stats.send_pending_delay = base::TimeDelta(); 252 stats.send_pending_delay = base::TimeDelta();
253 253
254 video_stats_dispatcher_.OnVideoFrameStats(result.frame_id, stats); 254 video_stats_dispatcher_.OnVideoFrameStats(result.frame_id, stats);
255 } 255 }
256 } 256 }
257 257
258 } // namespace protocol 258 } // namespace protocol
259 } // namespace remoting 259 } // namespace remoting
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698