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

Unified Diff: remoting/host/fake_desktop_capturer.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/host/desktop_process_unittest.cc ('k') | remoting/host/fake_desktop_capturer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/fake_desktop_capturer.h
diff --git a/remoting/host/fake_desktop_capturer.h b/remoting/host/fake_desktop_capturer.h
deleted file mode 100644
index 11a0150dbc00fe9c8529930451dd10a962f12f11..0000000000000000000000000000000000000000
--- a/remoting/host/fake_desktop_capturer.h
+++ /dev/null
@@ -1,49 +0,0 @@
-// Copyright 2014 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_FAKE_DESKTOP_CAPTURER_H_
-#define REMOTING_HOST_FAKE_DESKTOP_CAPTURER_H_
-
-#include "base/callback.h"
-#include "base/memory/scoped_ptr.h"
-#include "third_party/webrtc/modules/desktop_capture/desktop_capturer.h"
-#include "third_party/webrtc/modules/desktop_capture/desktop_geometry.h"
-#include "third_party/webrtc/modules/desktop_capture/screen_capture_frame_queue.h"
-
-namespace remoting {
-
-// A FakeDesktopCapturer generates artificial image for testing purpose.
-//
-// FakeDesktopCapturer is double-buffered as required by DesktopCapturer.
-class FakeDesktopCapturer : public webrtc::DesktopCapturer {
- public:
- // By default FakeDesktopCapturer generates frames of size kWidth x kHeight,
- // but custom frame generator set using set_frame_generator() may generate
- // frames of different size.
- static const int kWidth = 800;
- static const int kHeight = 600;
-
- typedef base::Callback<scoped_ptr<webrtc::DesktopFrame>(
- webrtc::DesktopCapturer::Callback* callback)> FrameGenerator;
-
- FakeDesktopCapturer();
- ~FakeDesktopCapturer() override;
-
- void set_frame_generator(const FrameGenerator& frame_generator);
-
- // webrtc::DesktopCapturer interface.
- void Start(Callback* callback) override;
- void Capture(const webrtc::DesktopRegion& rect) override;
-
- private:
- FrameGenerator frame_generator_;
-
- Callback* callback_;
-
- DISALLOW_COPY_AND_ASSIGN(FakeDesktopCapturer);
-};
-
-} // namespace remoting
-
-#endif // REMOTING_HOST_FAKE_DESKTOP_CAPTURER_H_
« no previous file with comments | « remoting/host/desktop_process_unittest.cc ('k') | remoting/host/fake_desktop_capturer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698