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

Side by Side Diff: remoting/host/shaped_desktop_capturer.h

Issue 1827043004: Remove shaped desktop support from remoting host and client. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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
« no previous file with comments | « remoting/host/desktop_shape_tracker_win.cc ('k') | remoting/host/shaped_desktop_capturer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef REMOTING_HOST_SHAPED_DESKTOP_CAPTURER_H_
6 #define REMOTING_HOST_SHAPED_DESKTOP_CAPTURER_H_
7
8 #include <stddef.h>
9
10 #include "base/macros.h"
11 #include "base/memory/scoped_ptr.h"
12 #include "third_party/webrtc/modules/desktop_capture/desktop_capturer.h"
13
14 namespace remoting {
15
16 class DesktopShapeTracker;
17
18 // Screen capturer that also captures desktop shape.
19 class ShapedDesktopCapturer : public webrtc::DesktopCapturer,
20 public webrtc::DesktopCapturer::Callback {
21 public:
22 ShapedDesktopCapturer(scoped_ptr<webrtc::DesktopCapturer> screen_capturer,
23 scoped_ptr<DesktopShapeTracker> shape_tracker);
24 ~ShapedDesktopCapturer() override;
25
26 // webrtc::DesktopCapturer interface.
27 void Start(webrtc::DesktopCapturer::Callback* callback) override;
28 void SetSharedMemoryFactory(rtc::scoped_ptr<webrtc::SharedMemoryFactory>
29 shared_memory_factory) override;
30 void Capture(const webrtc::DesktopRegion& region) override;
31
32 private:
33 // webrtc::DesktopCapturer::Callback interface.
34 void OnCaptureCompleted(webrtc::DesktopFrame* frame) override;
35
36 scoped_ptr<webrtc::DesktopCapturer> desktop_capturer_;
37 scoped_ptr<DesktopShapeTracker> shape_tracker_;
38 webrtc::DesktopCapturer::Callback* callback_;
39
40 DISALLOW_COPY_AND_ASSIGN(ShapedDesktopCapturer);
41 };
42
43 } // namespace remoting
44
45 #endif // REMOTING_HOST_SHAPED_DESKTOP_CAPTURER_H_
OLDNEW
« no previous file with comments | « remoting/host/desktop_shape_tracker_win.cc ('k') | remoting/host/shaped_desktop_capturer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698