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

Unified Diff: remoting/protocol/capture_scheduler.h

Issue 1462063004: Move VideoFramePump to remoting/protocol (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/protocol/BUILD.gn ('k') | remoting/protocol/capture_scheduler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/capture_scheduler.h
diff --git a/remoting/host/capture_scheduler.h b/remoting/protocol/capture_scheduler.h
similarity index 90%
rename from remoting/host/capture_scheduler.h
rename to remoting/protocol/capture_scheduler.h
index be8131b5da25ed82ba49cb2a84cb23eb1a7adaeb..0b01c634a964575f53230a33627eaa3c42ca4963 100644
--- a/remoting/host/capture_scheduler.h
+++ b/remoting/protocol/capture_scheduler.h
@@ -1,11 +1,12 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef REMOTING_HOST_CAPTURE_SCHEDULER_H_
-#define REMOTING_HOST_CAPTURE_SCHEDULER_H_
+#ifndef REMOTING_PROTOCOL_CAPTURE_SCHEDULER_H_
+#define REMOTING_PROTOCOL_CAPTURE_SCHEDULER_H_
#include "base/callback.h"
+#include "base/macros.h"
#include "base/threading/thread_checker.h"
#include "base/time/tick_clock.h"
#include "base/time/time.h"
@@ -17,6 +18,8 @@ namespace remoting {
class VideoPacket;
+namespace protocol {
+
// CaptureScheduler is used by the VideoFramePump to schedule frame capturer,
// taking into account capture delay, encoder delay, network bandwidth, etc.
// It implements VideoFeedbackStub to receive frame acknowledgments from the
@@ -27,7 +30,7 @@ class VideoPacket;
// - Parallelize capture, encode and transmission, to achieve frame rate as
// close to the target of 30fps as possible.
// - Limit CPU usage to 50%.
-class CaptureScheduler : public protocol::VideoFeedbackStub {
+class CaptureScheduler : public VideoFeedbackStub {
public:
explicit CaptureScheduler(const base::Closure& capture_closure);
~CaptureScheduler() override;
@@ -108,6 +111,7 @@ class CaptureScheduler : public protocol::VideoFeedbackStub {
DISALLOW_COPY_AND_ASSIGN(CaptureScheduler);
};
+} // namespace protocol
} // namespace remoting
-#endif // REMOTING_HOST_CAPTURE_SCHEDULER_H_
+#endif // REMOTING_PROTOCOL_CAPTURE_SCHEDULER_H_
« no previous file with comments | « remoting/protocol/BUILD.gn ('k') | remoting/protocol/capture_scheduler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698