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

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

Issue 2490063002: Remove ScreenCapturer and WindowCapturer (Closed)
Patch Set: 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
11 #ifndef WEBRTC_MODULES_DESKTOP_CAPTURE_WIN_SCREEN_CAPTURER_WIN_DIRECTX_H_ 11 #ifndef WEBRTC_MODULES_DESKTOP_CAPTURE_WIN_SCREEN_CAPTURER_WIN_DIRECTX_H_
12 #define WEBRTC_MODULES_DESKTOP_CAPTURE_WIN_SCREEN_CAPTURER_WIN_DIRECTX_H_ 12 #define WEBRTC_MODULES_DESKTOP_CAPTURE_WIN_SCREEN_CAPTURER_WIN_DIRECTX_H_
13 13
14 #include "webrtc/modules/desktop_capture/screen_capturer.h"
15
16 #include <D3DCommon.h> 14 #include <D3DCommon.h>
17 15
18 #include <memory> 16 #include <memory>
19 #include <vector> 17 #include <vector>
20 18
19 #include "webrtc/modules/desktop_capture/desktop_capturer.h"
21 #include "webrtc/modules/desktop_capture/desktop_capture_options.h" 20 #include "webrtc/modules/desktop_capture/desktop_capture_options.h"
22 #include "webrtc/modules/desktop_capture/desktop_region.h" 21 #include "webrtc/modules/desktop_capture/desktop_region.h"
23 #include "webrtc/modules/desktop_capture/screen_capture_frame_queue.h" 22 #include "webrtc/modules/desktop_capture/screen_capture_frame_queue.h"
24 #include "webrtc/modules/desktop_capture/shared_desktop_frame.h" 23 #include "webrtc/modules/desktop_capture/shared_desktop_frame.h"
25 #include "webrtc/modules/desktop_capture/win/dxgi_duplicator_controller.h" 24 #include "webrtc/modules/desktop_capture/win/dxgi_duplicator_controller.h"
26 25
27 namespace webrtc { 26 namespace webrtc {
28 27
29 // ScreenCapturerWinDirectx captures 32bit RGBA using DirectX. 28 // ScreenCapturerWinDirectx captures 32bit RGBA using DirectX.
30 class ScreenCapturerWinDirectx : public ScreenCapturer { 29 class ScreenCapturerWinDirectx : public DesktopCapturer {
31 public: 30 public:
32 using D3dInfo = DxgiDuplicatorController::D3dInfo; 31 using D3dInfo = DxgiDuplicatorController::D3dInfo;
33 32
34 // Whether the system supports DirectX based capturing. 33 // Whether the system supports DirectX based capturing.
35 static bool IsSupported(); 34 static bool IsSupported();
36 35
37 // Returns a most recent D3dInfo composed by 36 // Returns a most recent D3dInfo composed by
38 // DxgiDuplicatorController::Initialize() function. This function implicitly 37 // DxgiDuplicatorController::Initialize() function. This function implicitly
39 // calls DxgiDuplicatorController::Initialize() if it has not been 38 // calls DxgiDuplicatorController::Initialize() if it has not been
40 // initialized. This function returns false and output parameter is kept 39 // initialized. This function returns false and output parameter is kept
(...skipping 25 matching lines...) Expand all
66 DxgiDuplicatorController::Context context_; 65 DxgiDuplicatorController::Context context_;
67 66
68 SourceId current_screen_id_ = kFullDesktopScreenId; 67 SourceId current_screen_id_ = kFullDesktopScreenId;
69 68
70 RTC_DISALLOW_COPY_AND_ASSIGN(ScreenCapturerWinDirectx); 69 RTC_DISALLOW_COPY_AND_ASSIGN(ScreenCapturerWinDirectx);
71 }; 70 };
72 71
73 } // namespace webrtc 72 } // namespace webrtc
74 73
75 #endif // WEBRTC_MODULES_DESKTOP_CAPTURE_WIN_SCREEN_CAPTURER_WIN_DIRECTX_H_ 74 #endif // WEBRTC_MODULES_DESKTOP_CAPTURE_WIN_SCREEN_CAPTURER_WIN_DIRECTX_H_
OLDNEW
« no previous file with comments | « webrtc/modules/desktop_capture/screen_capturer_x11.cc ('k') | webrtc/modules/desktop_capture/win/screen_capturer_win_gdi.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698