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

Unified Diff: remoting/host/video_scheduler.h

Issue 14520018: Create the desktop environment before any of the channel were connected. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/host/host_mock_objects.h ('k') | remoting/host/video_scheduler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/video_scheduler.h
diff --git a/remoting/host/video_scheduler.h b/remoting/host/video_scheduler.h
index 666e1ab01abedb229aef060ac71a90b7b58fb20f..d26c394c38973508fbd0b2761576a426160d838d 100644
--- a/remoting/host/video_scheduler.h
+++ b/remoting/host/video_scheduler.h
@@ -80,7 +80,7 @@ class VideoScheduler : public base::RefCountedThreadSafe<VideoScheduler>,
// supplied TaskRunners. Video and cursor shape updates will be pumped to
// |video_stub| and |client_stub|, which must remain valid until Stop() is
// called. |capturer| is used to capture frames.
- static scoped_refptr<VideoScheduler> Create(
+ VideoScheduler(
scoped_refptr<base::SingleThreadTaskRunner> capture_task_runner,
scoped_refptr<base::SingleThreadTaskRunner> encode_task_runner,
scoped_refptr<base::SingleThreadTaskRunner> network_task_runner,
@@ -95,6 +95,9 @@ class VideoScheduler : public base::RefCountedThreadSafe<VideoScheduler>,
virtual void OnCursorShapeChanged(
scoped_ptr<media::MouseCursorShape> cursor_shape) OVERRIDE;
+ // Starts scheduling frame captures.
+ void Start();
+
// Stop scheduling frame captures. This object cannot be re-used once
// it has been stopped.
void Stop();
@@ -109,15 +112,6 @@ class VideoScheduler : public base::RefCountedThreadSafe<VideoScheduler>,
private:
friend class base::RefCountedThreadSafe<VideoScheduler>;
-
- VideoScheduler(
- scoped_refptr<base::SingleThreadTaskRunner> capture_task_runner,
- scoped_refptr<base::SingleThreadTaskRunner> encode_task_runner,
- scoped_refptr<base::SingleThreadTaskRunner> network_task_runner,
- scoped_ptr<media::ScreenCapturer> capturer,
- scoped_ptr<VideoEncoder> encoder,
- protocol::CursorShapeStub* cursor_stub,
- protocol::VideoStub* video_stub);
virtual ~VideoScheduler();
// Capturer thread ----------------------------------------------------------
« no previous file with comments | « remoting/host/host_mock_objects.h ('k') | remoting/host/video_scheduler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698