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

Side by Side Diff: webrtc/modules/desktop_capture/win/screen_capturer_win_directx.h

Issue 2479553006: Remove GetWindowList / GetScreenList and SelectWindow / SelectScreen from WebRTC (Closed)
Patch Set: Resolve review comments Created 4 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 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 static bool IsSupported(); 32 static bool IsSupported();
33 33
34 explicit ScreenCapturerWinDirectx(const DesktopCaptureOptions& options); 34 explicit ScreenCapturerWinDirectx(const DesktopCaptureOptions& options);
35 35
36 ~ScreenCapturerWinDirectx() override; 36 ~ScreenCapturerWinDirectx() override;
37 37
38 void Start(Callback* callback) override; 38 void Start(Callback* callback) override;
39 void SetSharedMemoryFactory( 39 void SetSharedMemoryFactory(
40 std::unique_ptr<SharedMemoryFactory> shared_memory_factory) override; 40 std::unique_ptr<SharedMemoryFactory> shared_memory_factory) override;
41 void CaptureFrame() override; 41 void CaptureFrame() override;
42 bool GetScreenList(ScreenList* screens) override; 42 bool GetSourceList(SourceList* sources) override;
43 bool SelectScreen(ScreenId id) override; 43 bool SelectSource(SourceId id) override;
44 44
45 private: 45 private:
46 // Returns desktop size of selected screen. 46 // Returns desktop size of selected screen.
47 DesktopSize SelectedDesktopSize() const; 47 DesktopSize SelectedDesktopSize() const;
48 48
49 ScreenCaptureFrameQueue<SharedDesktopFrame> frames_; 49 ScreenCaptureFrameQueue<SharedDesktopFrame> frames_;
50 std::unique_ptr<SharedMemoryFactory> shared_memory_factory_; 50 std::unique_ptr<SharedMemoryFactory> shared_memory_factory_;
51 Callback* callback_ = nullptr; 51 Callback* callback_ = nullptr;
52 52
53 DxgiDuplicatorController::Context context_; 53 DxgiDuplicatorController::Context context_;
54 54
55 ScreenId current_screen_id_ = kFullDesktopScreenId; 55 SourceId current_screen_id_ = kFullDesktopScreenId;
56 56
57 RTC_DISALLOW_COPY_AND_ASSIGN(ScreenCapturerWinDirectx); 57 RTC_DISALLOW_COPY_AND_ASSIGN(ScreenCapturerWinDirectx);
58 }; 58 };
59 59
60 } // namespace webrtc 60 } // namespace webrtc
61 61
62 #endif // WEBRTC_MODULES_DESKTOP_CAPTURE_WIN_SCREEN_CAPTURER_WIN_DIRECTX_H_ 62 #endif // WEBRTC_MODULES_DESKTOP_CAPTURE_WIN_SCREEN_CAPTURER_WIN_DIRECTX_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698