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

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

Issue 2443103003: Remove unused include in sequenced_worker_pool.h (Closed)
Patch Set: merge up to r429325 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
« no previous file with comments | « remoting/protocol/webrtc_video_stream.h ('k') | services/ui/public/cpp/gles2_context.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 246
247 stats.encode_delay = frame.timestamps->encode_ended_time - 247 stats.encode_delay = frame.timestamps->encode_ended_time -
248 frame.timestamps->encode_started_time; 248 frame.timestamps->encode_started_time;
249 249
250 video_stats_dispatcher_.OnVideoFrameStats(result.frame_id, stats); 250 video_stats_dispatcher_.OnVideoFrameStats(result.frame_id, stats);
251 } 251 }
252 } 252 }
253 253
254 } // namespace protocol 254 } // namespace protocol
255 } // namespace remoting 255 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/protocol/webrtc_video_stream.h ('k') | services/ui/public/cpp/gles2_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698