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

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

Issue 2964773002: Revert "Update includes for webrtc/{base => rtc_base} rename (1/3)" (Closed)
Patch Set: Created 3 years, 5 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
11 #ifndef WEBRTC_MODULES_DESKTOP_CAPTURE_WIN_DXGI_DUPLICATOR_CONTROLLER_H_ 11 #ifndef WEBRTC_MODULES_DESKTOP_CAPTURE_WIN_DXGI_DUPLICATOR_CONTROLLER_H_
12 #define WEBRTC_MODULES_DESKTOP_CAPTURE_WIN_DXGI_DUPLICATOR_CONTROLLER_H_ 12 #define WEBRTC_MODULES_DESKTOP_CAPTURE_WIN_DXGI_DUPLICATOR_CONTROLLER_H_
13 13
14 #include <D3DCommon.h> 14 #include <D3DCommon.h>
15 15
16 #include <atomic> 16 #include <atomic>
17 #include <vector> 17 #include <vector>
18 18
19 #include "webrtc/base/criticalsection.h"
20 #include "webrtc/base/scoped_ref_ptr.h"
19 #include "webrtc/modules/desktop_capture/desktop_geometry.h" 21 #include "webrtc/modules/desktop_capture/desktop_geometry.h"
20 #include "webrtc/modules/desktop_capture/resolution_change_detector.h" 22 #include "webrtc/modules/desktop_capture/resolution_change_detector.h"
21 #include "webrtc/modules/desktop_capture/shared_desktop_frame.h" 23 #include "webrtc/modules/desktop_capture/shared_desktop_frame.h"
22 #include "webrtc/modules/desktop_capture/win/d3d_device.h" 24 #include "webrtc/modules/desktop_capture/win/d3d_device.h"
23 #include "webrtc/modules/desktop_capture/win/dxgi_adapter_duplicator.h" 25 #include "webrtc/modules/desktop_capture/win/dxgi_adapter_duplicator.h"
24 #include "webrtc/modules/desktop_capture/win/dxgi_context.h" 26 #include "webrtc/modules/desktop_capture/win/dxgi_context.h"
25 #include "webrtc/modules/desktop_capture/win/dxgi_frame.h" 27 #include "webrtc/modules/desktop_capture/win/dxgi_frame.h"
26 #include "webrtc/rtc_base/criticalsection.h"
27 #include "webrtc/rtc_base/scoped_ref_ptr.h"
28 28
29 namespace webrtc { 29 namespace webrtc {
30 30
31 // A controller for all the objects we need to call Windows DirectX capture APIs 31 // A controller for all the objects we need to call Windows DirectX capture APIs
32 // It's a singleton because only one IDXGIOutputDuplication instance per monitor 32 // It's a singleton because only one IDXGIOutputDuplication instance per monitor
33 // is allowed per application. 33 // is allowed per application.
34 // 34 //
35 // Consumers should create a DxgiDuplicatorController::Context and keep it 35 // Consumers should create a DxgiDuplicatorController::Context and keep it
36 // throughout their lifetime, and pass it when calling Duplicate(). Consumers 36 // throughout their lifetime, and pass it when calling Duplicate(). Consumers
37 // can also call IsSupported() to determine whether the system supports DXGI 37 // can also call IsSupported() to determine whether the system supports DXGI
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 std::vector<DxgiAdapterDuplicator> duplicators_; 214 std::vector<DxgiAdapterDuplicator> duplicators_;
215 D3dInfo d3d_info_; 215 D3dInfo d3d_info_;
216 ResolutionChangeDetector resolution_change_detector_; 216 ResolutionChangeDetector resolution_change_detector_;
217 // A number to indicate how many succeeded duplications have been performed. 217 // A number to indicate how many succeeded duplications have been performed.
218 uint32_t succeeded_duplications_ = 0; 218 uint32_t succeeded_duplications_ = 0;
219 }; 219 };
220 220
221 } // namespace webrtc 221 } // namespace webrtc
222 222
223 #endif // WEBRTC_MODULES_DESKTOP_CAPTURE_WIN_DXGI_DUPLICATOR_CONTROLLER_H_ 223 #endif // WEBRTC_MODULES_DESKTOP_CAPTURE_WIN_DXGI_DUPLICATOR_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698