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

Side by Side Diff: webrtc/modules/desktop_capture/screen_capturer_differ_wrapper.h

Issue 2409833002: Remove DesktopRegion parameter in DesktopCapturer::Capture. (Closed)
Patch Set: Change Capture2 to CaptureFrame Created 4 years, 2 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
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 21 matching lines...) Expand all
32 // Creates a ScreenCapturerDifferWrapper with a ScreenCapturer implementation, 32 // Creates a ScreenCapturerDifferWrapper with a ScreenCapturer implementation,
33 // and takes its ownership. 33 // and takes its ownership.
34 explicit ScreenCapturerDifferWrapper( 34 explicit ScreenCapturerDifferWrapper(
35 std::unique_ptr<ScreenCapturer> base_capturer); 35 std::unique_ptr<ScreenCapturer> base_capturer);
36 ~ScreenCapturerDifferWrapper() override; 36 ~ScreenCapturerDifferWrapper() override;
37 37
38 // ScreenCapturer interface. 38 // ScreenCapturer interface.
39 void Start(DesktopCapturer::Callback* callback) override; 39 void Start(DesktopCapturer::Callback* callback) override;
40 void SetSharedMemoryFactory( 40 void SetSharedMemoryFactory(
41 std::unique_ptr<SharedMemoryFactory> shared_memory_factory) override; 41 std::unique_ptr<SharedMemoryFactory> shared_memory_factory) override;
42 void Capture(const DesktopRegion& region) override; 42 void CaptureFrame() override;
43 bool GetScreenList(ScreenList* screens) override; 43 bool GetScreenList(ScreenList* screens) override;
44 bool SelectScreen(ScreenId id) override; 44 bool SelectScreen(ScreenId id) override;
45 45
46 private: 46 private:
47 // DesktopCapturer::Callback interface. 47 // DesktopCapturer::Callback interface.
48 void OnCaptureResult(Result result, 48 void OnCaptureResult(Result result,
49 std::unique_ptr<DesktopFrame> frame) override; 49 std::unique_ptr<DesktopFrame> frame) override;
50 50
51 const std::unique_ptr<ScreenCapturer> base_capturer_; 51 const std::unique_ptr<ScreenCapturer> base_capturer_;
52 DesktopCapturer::Callback* callback_; 52 DesktopCapturer::Callback* callback_;
53 std::unique_ptr<SharedDesktopFrame> last_frame_; 53 std::unique_ptr<SharedDesktopFrame> last_frame_;
54 }; 54 };
55 55
56 } // namespace webrtc 56 } // namespace webrtc
57 57
58 #endif // WEBRTC_MODULES_DESKTOP_CAPTURE_SCREEN_CAPTURER_DIFFER_WRAPPER_H_ 58 #endif // WEBRTC_MODULES_DESKTOP_CAPTURE_SCREEN_CAPTURER_DIFFER_WRAPPER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698