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

Side by Side Diff: remoting/host/video_scheduler.cc

Issue 373213002: Fix typo in comments added in r281677 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/host/video_scheduler.h" 5 #include "remoting/host/video_scheduler.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 14 matching lines...) Expand all
25 #include "third_party/webrtc/modules/desktop_capture/screen_capturer.h" 25 #include "third_party/webrtc/modules/desktop_capture/screen_capturer.h"
26 26
27 namespace remoting { 27 namespace remoting {
28 28
29 // Maximum number of frames that can be processed simultaneously. 29 // Maximum number of frames that can be processed simultaneously.
30 // TODO(hclam): Move this value to CaptureScheduler. 30 // TODO(hclam): Move this value to CaptureScheduler.
31 static const int kMaxPendingFrames = 2; 31 static const int kMaxPendingFrames = 2;
32 32
33 // Interval between empty keep-alive frames. These frames are sent only 33 // Interval between empty keep-alive frames. These frames are sent only
34 // when there are no real video frames being sent. To prevent PseudoTCP from 34 // when there are no real video frames being sent. To prevent PseudoTCP from
35 // resetting congestion window this value must be smaller that then the minimum 35 // resetting congestion window this value must be smaller than the minimum
36 // RTO used in PseudoTCP, which is 250ms. 36 // RTO used in PseudoTCP, which is 250ms.
37 static const int kKeepAlivePacketIntervalMs = 200; 37 static const int kKeepAlivePacketIntervalMs = 200;
38 38
39 VideoScheduler::VideoScheduler( 39 VideoScheduler::VideoScheduler(
40 scoped_refptr<base::SingleThreadTaskRunner> capture_task_runner, 40 scoped_refptr<base::SingleThreadTaskRunner> capture_task_runner,
41 scoped_refptr<base::SingleThreadTaskRunner> encode_task_runner, 41 scoped_refptr<base::SingleThreadTaskRunner> encode_task_runner,
42 scoped_refptr<base::SingleThreadTaskRunner> network_task_runner, 42 scoped_refptr<base::SingleThreadTaskRunner> network_task_runner,
43 scoped_ptr<webrtc::ScreenCapturer> capturer, 43 scoped_ptr<webrtc::ScreenCapturer> capturer,
44 scoped_ptr<VideoEncoder> encoder, 44 scoped_ptr<VideoEncoder> encoder,
45 protocol::CursorShapeStub* cursor_stub, 45 protocol::CursorShapeStub* cursor_stub,
(...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after
357 frame.reset(); 357 frame.reset();
358 358
359 scheduler_.RecordEncodeTime( 359 scheduler_.RecordEncodeTime(
360 base::TimeDelta::FromMilliseconds(packet->encode_time_ms())); 360 base::TimeDelta::FromMilliseconds(packet->encode_time_ms()));
361 network_task_runner_->PostTask( 361 network_task_runner_->PostTask(
362 FROM_HERE, base::Bind(&VideoScheduler::SendVideoPacket, this, 362 FROM_HERE, base::Bind(&VideoScheduler::SendVideoPacket, this,
363 base::Passed(&packet))); 363 base::Passed(&packet)));
364 } 364 }
365 365
366 } // namespace remoting 366 } // namespace remoting
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698