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

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

Issue 2314323002: Wrap ScreenCapturer with ScreenCapturerDifferWrapper (Closed)
Patch Set: Resolve review comments Created 4 years, 3 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 | « webrtc/modules/desktop_capture/win/screen_capturer_win_directx.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "webrtc/modules/desktop_capture/win/screen_capturer_win_directx.h" 11 #include "webrtc/modules/desktop_capture/win/screen_capturer_win_directx.h"
12 12
13 #include <utility> 13 #include <utility>
14 14
15 #include "webrtc/base/checks.h" 15 #include "webrtc/base/checks.h"
16 #include "webrtc/base/logging.h" 16 #include "webrtc/base/logging.h"
17 #include "webrtc/base/timeutils.h" 17 #include "webrtc/base/timeutils.h"
18 #include "webrtc/modules/desktop_capture/desktop_frame.h" 18 #include "webrtc/modules/desktop_capture/desktop_frame.h"
19 19
20 namespace webrtc { 20 namespace webrtc {
21 21
22 using Microsoft::WRL::ComPtr; 22 using Microsoft::WRL::ComPtr;
23 23
24 // static
24 bool ScreenCapturerWinDirectx::IsSupported() { 25 bool ScreenCapturerWinDirectx::IsSupported() {
25 // Forward IsSupported function call to DxgiDuplicatorController. 26 // Forward IsSupported function call to DxgiDuplicatorController.
26 return DxgiDuplicatorController::Instance()->IsSupported(); 27 return DxgiDuplicatorController::Instance()->IsSupported();
27 } 28 }
28 29
29 ScreenCapturerWinDirectx::ScreenCapturerWinDirectx( 30 ScreenCapturerWinDirectx::ScreenCapturerWinDirectx(
30 const DesktopCaptureOptions& options) 31 const DesktopCaptureOptions& options)
31 : callback_(nullptr) {} 32 : callback_(nullptr) {}
32 33
33 ScreenCapturerWinDirectx::~ScreenCapturerWinDirectx() {} 34 ScreenCapturerWinDirectx::~ScreenCapturerWinDirectx() {}
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 131
131 int screen_count = DxgiDuplicatorController::Instance()->ScreenCount(); 132 int screen_count = DxgiDuplicatorController::Instance()->ScreenCount();
132 if (id >= 0 && id < screen_count) { 133 if (id >= 0 && id < screen_count) {
133 current_screen_id = id; 134 current_screen_id = id;
134 return true; 135 return true;
135 } 136 }
136 return false; 137 return false;
137 } 138 }
138 139
139 } // namespace webrtc 140 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/modules/desktop_capture/win/screen_capturer_win_directx.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698